Name: [FIX] viin_brand_mail: restore the test bot identity on update, not only on install

State: Failed finished in 203m

PR State: open

PR Author: David Tran

PR Author Email:

PR: #672

Committer: David Tran

Committer Email: tuan.tran@viindoo.com

Commit: 022b3bb8c5dc47089fb7a3e6a5a2e814d89fadfe

Description:

                                            [FIX] viin_brand_mail: restore the test bot identity on update, not only on install

data/res_partner_data.xml renames base.partner_root to ViindooBot and is not
noupdate, so the rebranding is re-applied on EVERY module update. The guard that
puts core's OdooBot identity back for test runs lived in post_init_hook, which
odoo/modules/loading.py:244 calls only when the module's state is 'to install'
(:178). The two were asymmetric - branding on every load, restore on the first one
only - so any -u left the partner branded and every core test hardcoding
odoobot@example.com failed. google_calendar alone contributed 12 of them, since the
superuser is the implicit event organiser in its Odoo-to-Google payload comparisons.

The restore now lives on res.partner and is driven from the same data file that
applies the branding, so both are on one trigger; a function tag runs on update as
well as install (odoo/tools/convert.py:279-281 skips it only under noupdate).
post_init_hook is kept as a one-line delegation so the logic has a single home.
                                            

Branch: 17.0

Age:

Up-time:

Subbuilds Name State Detail
Build 406407 Check the quality with Pylint: from test_lint to test_pylint 20m Succeed Log
Build 406408 At install tests: from account to website_twitter 124m Succeed Log
Build 406409 Post install tests: step install all modules 54m Succeed Log
Build 406410 Post install tests: from account to hr_recruitment_survey 100m Succeed Log
Build 406411 Post install tests: from hr_skills to phone_validation 89m Succeed Log
Build 406412 Post install tests: from point_of_sale to purchase_requisition_stock 95m Succeed Log
Build 406413 Post install tests: from purchase_stock to test_lint 104m Succeed Log
Build 406414 Post install tests: from test_mail to to_purchase_line_numbering 118m Succeed Log
Build 406415 Post install tests: from to_purchase_order_advance to viin_approval_purpose_routing 139m Succeed Log
Build 406416 Post install tests: from viin_approval_sale to viin_product_approval_marketplace 109m Succeed Log
Build 406417 Post install tests: from viin_product_approval_marketplace_website_sale to web_unsplash 99m Succeed Log
Build 406418 Post install tests: from website to website_twitter 109m Failed Log
Build 406419 Test install all modules without demo data: from account to website_twitter 44m Succeed Log
Create Date Level Message
08/21/2026 17:10:22 INFO
Updated repository Viindoo-odoo
08/21/2026 17:10:22 INFO
Updated repository Viindoo-tvtmaaddons
08/21/2026 17:10:22 INFO
Updated repository Viindoo-erponline-enterprise
08/21/2026 17:10:22 INFO
Cloned repository Viindoo-branding
08/21/2026 20:35:23 WARNING
Subbuild # 406418: odoo.addons.website_sale.tests.test_website_sale_reorder_from_portal.TestWebsiteSaleReorderFromPortal.browser: Tour website_sale_reorder_from_portal failed at step Checking if Reorder Product 1 is in the cart (trigger: a:contains(Reorder Product 1)) { "content": "Select first order", "trigger": ".o_portal_my_doc_table a:first" }, { "content": "Clicking on the Reorder Again", "trigger": ".o_wsale_reorder_button", "run": "click" }, { "content": "Clicking on the Confirm", "trigger": ".o_wsale_reorder_confirm", "run": "click" }, ----- FAILING STEP ----- { "content": "Checking if Reorder Product 1 is in the cart", "trigger": " a:contains(Reorder Product 1)", "run": "[function]" }, ----------------------- { "content": "Check that quantity is 1", "trigger": ".js_quantity[value='1']", "isCheck": true },
08/21/2026 20:35:23 ERROR
Subbuild # 406418: odoo.addons.website_sale.tests.test_website_sale_reorder_from_portal.TestWebsiteSaleReorderFromPortal.browser: Tour website_sale_reorder_from_portal failed at step Checking if Reorder Product 1 is in the cart (trigger: a:contains(Reorder Product 1))
08/21/2026 20:35:23 ERROR
Subbuild # 406418: odoo.addons.website_sale.tests.test_website_sale_reorder_from_portal: FAIL: TestWebsiteSaleReorderFromPortal.test_website_sale_reorder_from_portal Traceback (most recent call last): File "/data/build/Viindoo-odoo-17.0/addons/website_sale/tests/test_website_sale_reorder_from_portal.py", line 75, in test_website_sale_reorder_from_portal self.start_tour("/", 'website_sale_reorder_from_portal', login='admin') File "/data/build/Viindoo-odoo-17.0/odoo/tests/common.py", line 2217, in start_tour return self.browser_js(url_path=url_path, code=code, ready=ready, **kwargs) File "/data/build/Viindoo-odoo-17.0/odoo/tests/common.py", line 2194, in browser_js self.fail('%s\n\n%s' % (message, error)) AssertionError: The test code "odoo.startTour('website_sale_reorder_from_portal', {"stepDelay": 0, "keepWatchBrowser": false, "startUrl": "/"})" failed Tour website_sale_reorder_from_portal failed at step Checking if Reorder Product 1 is in the cart (trigger: a:contains(Reorder Product 1))
08/21/2026 20:35:23 ERROR
Subbuild # 406418: odoo.tests.result: 1 failed, 0 error(s) of 536 tests when loading database 'rb-022b3bb-224122-406418'