コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3788 ビュー

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
2月 25
1010
1
9月 22
5905
0
7月 22
1941
0
5月 20
2537
0
8月 16
2950