Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

I've created my custom localization module which basically has the chart of accounts and taxes. But when I upload my module to Odoo.sh the automated test throw the following error:

ERROR: setUpClass (odoo.addons.account.tests.test_account_invoice_report.TestAccountInvoiceReport) Traceback (most recent call last): File "/home/odoo/src/odoo/addons/account/tests/test_account_invoice_report.py", line 15, in setUpClass super(TestAccountInvoiceReport, cls).setUpClass() File "/home/odoo/src/odoo/addons/account/tests/invoice_test_common.py", line 25, in setUpClass cls.tax_armageddon = cls.setup_armageddon_tax('complex_tax', cls.company_data) File "/home/odoo/src/odoo/addons/account/tests/account_test_savepoint.py", line 188, in setup_armageddon_tax 'cash_basis_transition_account_id': company_data['default_account_tax_sale'].copy().id, File "/home/odoo/src/odoo/addons/account/models/account.py", line 477, in copy default['code'] = (str(int(self.code) + 10) or '').zfill(len(self.code)) TypeError: object of type 'bool' has no len()
Why does this error appear, and how can I fix it? It only appears because of the automated tests, in my local server there are no errors at all

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 22
3810
1
thg 7 25
1682
4
thg 4 25
12004
1
thg 2 25
3410
1
thg 1 25
1320