تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3798 أدوات العرض

I´ve created some fields in the pos.config model and made them required since it is related to local tax law. When uploading the module to odoo.sh it throws the following error:

ERRORserverFAIL: TestPoSWithFiscalPosition.test_03_invoiced_fpos Traceback (most recent call last): File "/home/odoo/src/odoo/addons/point_of_sale/tests/test_pos_with_fiscal_position.py", line 12, in setUp super(TestPoSWithFiscalPosition, self).setUp() File "/home/odoo/src/odoo/addons/point_of_sale/tests/common.py", line 155, in setUp self.basic_config = self._create_basic_config() File "/home/odoo/src/odoo/addons/point_of_sale/tests/common.py", line 197, in _create_basic_config config = new_config.save() File "/home/odoo/src/odoo/odoo/tests/common.py", line 1698, in save values = self._values_to_save() File "/home/odoo/src/odoo/odoo/tests/common.py", line 1728, in _values_to_save assert v is not False, "{} is a required field".format(f) AssertionError: economic_sector_id is a required field

How can I avoid this kind of errors in Odoo.sh is it related to demo data? When testing in a local server the error appears only when checking the demo_data checkbox

الصورة الرمزية
إهمال
أفضل إجابة

https://www.odoo.com/documentation/user/14.0/odoo_sh/getting_started/branches.html

Settings -> Test suite checkbox

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 25
1013
1
سبتمبر 22
5912
0
يوليو 22
1943
0
مايو 20
2544
0
أغسطس 16
2951