Skip to Content

Name: Merged from upstream 19 261018 01

State: Failed finished in 100m

PR State: open

PR Author: David Tran

PR Author Email:

PR: #1312

Committer: David Tran

Committer Email: david.tran@tvtmarine.com

Commit: 992e84c8b4c19fddbf78419e2b6516b5c46e9a08

Description:

                                            [FIX] account_edi_ubl_cii: prevent deferred tests crash on Community

test_invoice_deferred_dates_with_delivery_date,
test_invoice_deferred_dates_on_some_lines and
test_invoice_deferred_dates_on_some_lines_with_delivery_date create
invoice lines with deferred_start_date/deferred_end_date, but only the
Enterprise addon account_accountant defines them. Without it installed,
they crashed with "Invalid field" on every Community build instead of
being skipped.

Guard each with ensure_installed("account_accountant"), the same idiom
already used by test_invoice_deferred_dates.

Signed-off-by: David Tran <david.tran@tvtmarine.com>
(cherry picked from commit 5e828c61ed0f222af0f195d46fb2b34e53888bc0)
                                            

Branch: 19.0

Age:

Up-time:

Subbuilds Name State Detail
Build 425905 At install tests: from account to website_timesheet 99m Failed Log
Build 425906 Post install tests: step install all modules 13m Succeed Log
Build 425907 Post install tests: from account to hr_recruitment_survey 119m Failed Log
Build 425908 Post install tests: from hr_skills to phone_validation 149m Succeed Log
Build 425909 Post install tests: from point_of_sale to purchase_requisition_stock 149m Succeed Log
Build 425910 Post install tests: from purchase_stock to test_l10n_vn_viin_edi 109m Succeed Log
Build 425911 Post install tests: from test_mail to to_product_return_reason_stock 134m Failed Log
Build 425912 Post install tests: from to_registration_email_blacklist to viin_approval_purpose_routing 109m Succeed Log
Build 425913 Post install tests: from viin_approval_sale to viin_product 129m Succeed Log
Build 425914 Post install tests: from viin_project to web_unsplash 99m Succeed Log
Build 425915 Post install tests: from website to website_timesheet 94m Succeed Log
Create Date Level Message
10/19/2026 01:05:15 AM INFO
Updated repository Viindoo-tvtmaaddons
10/19/2026 01:05:15 AM INFO
Updated repository Viindoo-erponline-enterprise
10/19/2026 01:05:15 AM INFO
Updated repository Viindoo-branding
10/19/2026 01:05:15 AM INFO
Cloned repository Viindoo-odoo
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.base.tests.test_cli: FAIL: Subtest TestCommand.test_upgrade_code_migrations [17.5-01-tree-to-list.py] (accept_changes=False) Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/addons/base/tests/test_cli.py", line 136, in test_upgrade_code_migrations self.fail("files should not be changed") AssertionError: files should not be changed
10/19/2026 02:45:26 AM WARNING
Subbuild # 425905: 18.1-00-sql-constraint.py: Failed to replace in file /data/build/Viindoo-tvtmaaddons-19.0/viin_hr_overtime/models/hr_work_entry.py
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.base.tests.test_cli: ERROR: Subtest TestCommand.test_upgrade_code_migrations [18.1-00-sql-constraint.py] (accept_changes=False) Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/addons/base/tests/test_cli.py", line 134, in test_upgrade_code_migrations result = migrate(file_manager, glob=None, script=script_name, dry_run=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/cli/upgrade_code.py", line 185, in migrate module.upgrade(file_manager) File "/data/build/rb-992e84c-225681/odoo/upgrade_code/18.1-00-sql-constraint.py", line 44, in upgrade content = sql_expression_re.sub(build_sql_object, content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/upgrade_code/18.1-00-sql-constraint.py", line 31, in build_sql_object message_repr = json.dumps(message) # so that the message is in double quotes ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 258, in iterencode return _iterencode(o, 0) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 180, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type ellipsis is not JSON serializable
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.base.tests.test_cli: FAIL: Subtest TestCommand.test_upgrade_code_migrations [18.1-02-route-jsonrpc.py] (accept_changes=False) Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/addons/base/tests/test_cli.py", line 136, in test_upgrade_code_migrations self.fail("files should not be changed") AssertionError: files should not be changed
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.base.tests.test_cli: FAIL: Subtest TestCommand.test_upgrade_code_migrations [18.5-00-deprecated-properties.py] (accept_changes=False) Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/addons/base/tests/test_cli.py", line 136, in test_upgrade_code_migrations self.fail("files should not be changed") AssertionError: files should not be changed
10/19/2026 02:45:26 AM WARNING
Subbuild # 425905: 18.5-00-domain-dynamic-dates.py: Failed to parse the domain "[('expire_date','!=',False),('expire_date','>', datetime.datetime.combine(context_today(), datetime.time(0,0,0))),('expire_date','<=', datetime.datetime.combine(context_today(), datetime.time(23,59,59.99999)))]"
10/19/2026 02:45:26 AM WARNING
Subbuild # 425905: 18.5-00-domain-dynamic-dates.py: Failed to parse the domain "['|',('next_scheduled_trip_date','=',False),('next_scheduled_trip_date','>=', datetime.datetime.combine(context_today(), datetime.time(23,59,59)))]"
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.base.tests.test_cli: ERROR: Subtest TestCommand.test_upgrade_code_migrations [18.5-00-domain-dynamic-dates.py] (accept_changes=False) Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/addons/base/tests/test_cli.py", line 134, in test_upgrade_code_migrations result = migrate(file_manager, glob=None, script=script_name, dry_run=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/cli/upgrade_code.py", line 185, in migrate module.upgrade(file_manager) File "/data/build/rb-992e84c-225681/odoo/upgrade_code/18.5-00-domain-dynamic-dates.py", line 254, in upgrade content = re.sub(r'(name="(?:domain|domain_force)"[^>]*>)(.+?)(<)', replacement_tag, content, flags=re.MULTILINE | re.DOTALL) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/re/__init__.py", line 186, in sub return _compile(pattern, flags).sub(repl, string, count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/upgrade_code/18.5-00-domain-dynamic-dates.py", line 246, in replacement_tag value = etree.fromstring(f"<x>{match[2]}</x>").text ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/lxml/etree.pyx", line 3287, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1989, in lxml.etree._parseMemoryDocument File "src/lxml/parser.pxi", line 1869, in lxml.etree._parseDoc File "src/lxml/parser.pxi", line 1105, in lxml.etree._BaseParser._parseUnicodeDoc File "src/lxml/parser.pxi", line 633, in lxml.etree._ParserContext._handleParseResultDoc File "src/lxml/parser.pxi", line 743, in lxml.etree._handleParseResult File "src/lxml/parser.pxi", line 672, in lxml.etree._raiseParseError File "<string>", line 1 lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: x line 1 and field, line 1, column 12
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.modules.loading: Module base: 3 failures, 2 errors of 1020 tests
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.to_hr_employee_relative.tests.test_family_propagation: ERROR: TestFamilyPropagation.test_form_does_not_mirror_marital_for_past_version_context Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-19.0/to_hr_employee_relative/tests/test_family_propagation.py", line 302, in test_form_does_not_mirror_marital_for_past_version_context employee_form.relative_ids.add(relative) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'O2MProxy' object has no attribute 'add'
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.addons.to_hr_employee_relative.tests.test_family_propagation: ERROR: TestFamilyPropagation.test_form_mirrors_marital_before_save_on_current_version Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-19.0/to_hr_employee_relative/tests/test_family_propagation.py", line 284, in test_form_mirrors_marital_before_save_on_current_version employee_form.relative_ids.add(relative) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'O2MProxy' object has no attribute 'add'
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.modules.loading: Module to_hr_employee_relative: 0 failures, 2 errors of 32 tests
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.modules.loading: At least one test failed when loading the modules.
10/19/2026 02:45:26 AM ERROR
Subbuild # 425905: odoo.tests.result: 3 failed, 4 error(s) of 7617 tests when loading database 'rb-992e84c-225681-425905'
10/19/2026 03:20:24 AM ERROR
Subbuild # 425907: ERROR: cannot execute UPDATE in a read-only transaction
10/19/2026 03:20:24 AM ERROR
Subbuild # 425907: ERROR: cannot execute UPDATE in a read-only transaction
10/19/2026 03:20:24 AM ERROR
Subbuild # 425907: odoo.sql_db: bad query: b' UPDATE "fleet_vehicle"\n SET "write_date" = "__tmp"."write_date"::timestamp, "write_uid" = "__tmp"."write_uid"::int4\n FROM (VALUES (7, \'2026-10-18T20:07:07.028523\'::timestamp, 2)) AS "__tmp"("id", "write_date", "write_uid")\n WHERE "fleet_vehicle"."id" = "__tmp"."id"\n '
10/19/2026 03:20:24 AM ERROR
Subbuild # 425907: ERROR: cannot execute UPDATE in a read-only transaction
10/19/2026 03:20:24 AM WARNING
Subbuild # 425907: odoo.http: cannot execute UPDATE in a read-only transaction, retrying with a read/write cursor Traceback (most recent call last): File "/data/build/rb-992e84c-225681/odoo/http.py", line 2303, in _serve_db return service_model.retrying(serve_func, env=self.env) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/service/model.py", line 190, in retrying env.cr.flush() # submit the changes to the database ^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/sql_db.py", line 182, in flush self.transaction.flush() File "/data/build/rb-992e84c-225681/odoo/orm/environments.py", line 592, in flush self.default_env.flush_all() File "/data/build/rb-992e84c-225681/odoo/orm/environments.py", line 388, in flush_all self[model_name].flush_model() File "/data/build/rb-992e84c-225681/odoo/orm/models.py", line 6383, in flush_model self._flush() File "/data/build/rb-992e84c-225681/odoo/orm/models.py", line 6451, in _flush model.browse(some_ids)._write_multi(vals_list) File "/data/build/rb-992e84c-225681/odoo/orm/models.py", line 4600, in _write_multi self.env.execute_query(SQL( File "/data/build/rb-992e84c-225681/odoo/orm/environments.py", line 534, in execute_query self.cr.execute(query) File "/data/build/rb-992e84c-225681/odoo/tests/test_cursor.py", line 79, in execute return self._cursor.execute(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/build/rb-992e84c-225681/odoo/sql_db.py", line 440, in execute self._obj.execute(query, params) psycopg2.errors.ReadOnlySqlTransaction: cannot execute UPDATE in a read-only transaction
10/19/2026 03:50:02 AM WARNING
Subbuild # 425909: odoo.http: You can only cancel a session that is in opening control state and has no orders.
10/19/2026 03:35:02 AM ERROR
Subbuild # 425911: odoo.addons.to_hr_payroll.tests.test_hr_contract: ERROR: TestHRContract.test_the_gross_salary_adds_the_monthly_advantages_to_the_basic_wage Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-19.0/to_hr_payroll/tests/test_hr_contract.py", line 368, in test_the_gross_salary_adds_the_monthly_advantages_to_the_basic_wage employee_form.advantage_ids.add(line_1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'O2MProxy' object has no attribute 'add'
10/19/2026 03:35:02 AM ERROR
Subbuild # 425911: odoo.addons.to_hr_payroll.tests.test_officer_contract_fields: ERROR: TestOfficerContractForm.test_the_payroll_page_totals_the_wage_and_the_monthly_advantages Traceback (most recent call last): File "/data/build/Viindoo-tvtmaaddons-19.0/to_hr_payroll/tests/test_officer_contract_fields.py", line 551, in test_the_payroll_page_totals_the_wage_and_the_monthly_advantages form.advantage_ids.add(line_1) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'O2MProxy' object has no attribute 'add'
10/19/2026 03:35:02 AM ERROR
Subbuild # 425911: odoo.tests.result: 0 failed, 2 error(s) of 3393 tests when loading database 'rb-992e84c-225681-425911'