Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3800 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Settings -> Test suite checkbox

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
1014
1
thg 9 22
5912
0
thg 7 22
1943
0
thg 5 20
2545
0
thg 8 16
2951