一、通过CMD命令界面启动odoo:进入odoo-bin目录下:执行 python odoo-bin -c odoo.conf
二、pycharm配置自动安装升级模块:-c E:odoo14odoo14odoo.conf --update mo_sale
3、对于升级一直报错进不去解决办法:
update ir_module_module set state='installed' where state='to upgrade';
这样系统就不一直升级了,解决完问题就可以了。
4、odoo里获取所有模块
self.env.registry.models
5、获取里面的销售模块
self.env.registry.models.get('sale.order')