Repository navigation
Conversation
Contributor
rov-adhoc
force-pushed
the
20.0-t-76423-rov
branch
from
October 9, 2026 10:58
5468b12 to
e6bfb0c
Compare
rov-adhoc
force-pushed
the
20.0-t-76423-rov
branch
from
October 9, 2026 11:12
e6bfb0c to
3ca2c95
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Migration of
base_company_dependentfrom 19.0 to 20.0.Tarea: https://www.adhoc.inc/odoo/project.task/76423
Changes
20.0.1.0.0and setinstallabletoTrue.ir.model.accessno longer exists in 20.0 (replaced byir.access): model-level checks now useenv[model].browse().check_access(op).owl3-migrationfromupgrade_codeapplied (proxy,usePlugin(NotificationPlugin),this.in templates,t-out).static propsreplaced byprops = useProps(...)inCompanyDependentButtonandCompanyDependentDialog.webtemplates. Refs now point to thesignal.ref()of each field (this.input,this.numpadDecimalRef,this.rootRef). Thet-custom-refproduced byupgrade_codeis not a directive in 20.0.oi+data-icon).fields_patch.js(for exampleMany2OneBankField) keep a copy ofcomponentswithout the button but inherit the patched template.addButtonToFieldSubclasses()adds the button to them.ir.accesswithbase.group_user(a group-lessir.accessis a restriction in 20.0).static/tests/base_company_dependent.test.js): the button on the 8 field types, default and specific values, saving a Char field,boolean_togglein form and list (one button per row), the dialog (save, copy to child companies, reset, skipped companies) and the field subclass fix.No data migration script is needed: the module has no stored fields of its own (both models are abstract) and no data files.
Test plan
base_company_dependenton a new 20.0 database with demo data.res.partner.barcode) to a form view. Check that the company button shows, that a typed value is saved, and that the per-company dialog opens.