add folders tests

in /mod1/test/__init__.py

# -*- coding: utf-8 -*-
from . import test_double_product

in /mod1/test/test_double_product

# -*- coding: utf-8 -*-import logging
import odoo
from odoo import api
from odoo.tests.common import SingleTransactionCase
from odoo.tests import tagged
_logger = logging.getLogger(__name__)
class TestUnsyncDeleted(SingleTransactionCase):
"""
Explain what the test is all about
"""
def test_double_product(self):
Product = self.env["product.template"]
p1 = Product.browse(1382)
price_before = p1.list_price
self.assertEqual(price_before, 10)
p1.double() price_after = p1.list_price
self.assertEqual(price_after, 20)

To run

./odoo-bin c odoo.conf --test-enable --stop-after-init -p9069 -u mod1

--

--

Upgrade VS Code today and got this error

➜ more /usr/share/applications/code.desktop 
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --no-sandbox --unity-launch %F
Icon=com.visualstudio.code
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/share/code/code --no-sandbox --new-window %F
Icon=com.visualstudio.code

So I make an alias to/usr/share/code/bin/code

--

--

  • add the deploy key to github repo settings from public key
  • in ~/.ssh/config ; add host
Host theme-pm2
Hostname github.com
IdentityFile=/home/odoo/.ssh/id_ed25519
  • change remote host from github.com to the host set up in ~/.ssh/config
git remote set-url origin git@theme-pm2:korakotlee/theme-pm2.git

--

--