From 83f4e72f04c7389f8d75bbec45a08d4577bc00b1 Mon Sep 17 00:00:00 2001 From: Hetashree Chauhan Date: Wed, 6 Sep 2017 10:48:58 +0530 Subject: [PATCH] [FIX] purchase: Import res_config_settings.py after res_company.py Purpose ======= Steps : - Blank DB (without demo) - Install inventory, Sales - Create some products + update qty + activate serial number from setting and create some products (I tried this step and faced traceback) - Now try to install Purchase app It gives traceback.. Specification ============= As the field po_lock is defined on the res_company and a related field is defined on the res_config_settings.py file, modify the import order. change the position of res.company file, so that fields of po_lock will define first and then it will not generate field's error in res.config.settings file. --- addons/purchase/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/models/__init__.py b/addons/purchase/models/__init__.py index 0c9a850081e..c5c55d6edaa 100644 --- a/addons/purchase/models/__init__.py +++ b/addons/purchase/models/__init__.py @@ -3,8 +3,8 @@ from . import account_invoice from . import purchase -from . import res_config_settings from . import res_company +from . import res_config_settings from . import res_partner from . import stock from . import stock_config_settings