Skip to Content

[FIX] base, crm: Vietnamese for privilege placeholders and CRM

Killed 264m merged
PR
#1384
PR Author
David Tran
Committer
David Tran
Commit
e542ba85c2b0
Branch
19.0
Age
Up-time
Commit message
[FIX] analytic: translate plan column labels

Each root analytic plan gets a dynamic many2one column on the models
inheriting analytic.plan.fields.mixin, and each sub-plan level gets a
related field labelled "<root plan> (<depth>)". The `fields_get` of the
mixin replaces the label of the root columns with the translated plan
name, but only for users who can read analytic plans. Everywhere else
the label comes from the field description, which `_sync_plan_column`
writes in a single language: a user without analytic accounting rights
sees the English plan name in the custom group by, custom filter and
pivot headers, and the sub-plan fields read "<root plan> (1)" in English
for every user. The translations of the plan names loaded from the .po
files (language or module install) do not trigger the sync either, as
they are written in database without going through the ORM.

The same sync writes the project plan name into the label of
`account_id`, a field declared in Python. The next reflection of the
model restores the declared label and drops its translations, so the
field reads "Project Account" in English in every language.

Write the plan name of every installed language in the labels of the
dynamic plan columns and sub-plan fields, leave the label of
`account_id` to its declaration, and re-sync the labels once the module
terms are loaded.

(cherry picked from commit ac69f6f739888eb29bab80ed85ee77590295c333)
Build Log
Date Level Message
12/05/2026 06:36:24 PM INFO
Running on the master, the most idle machine, build containers taken: the master 29/36, office1 12/12, office2 20/12
12/05/2026 06:36:24 PM INFO
Updated repository Viindoo-tvtmaaddons
12/05/2026 06:36:24 PM INFO
Updated repository Viindoo-erponline-enterprise
12/05/2026 06:36:24 PM INFO
Updated repository Viindoo-branding
12/05/2026 06:36:24 PM INFO
Cloned repository Viindoo-odoo
12/05/2026 06:36:24 PM INFO
At install tests: this pull request changes no frontend file, so it runs without /web:WebSuite.test_unit_desktop, /web:WebSuite.test_hoot, /web:WebSuite.test_qunit_desktop, /web:MobileWebSuite.test_unit_mobile
12/05/2026 06:36:24 PM INFO
At install tests: this pull request changes base, which the server loads at start (--load), so it runs the at install tests of every module
12/05/2026 06:36:24 PM INFO
Post install tests: this pull request changes no frontend file, so it runs without /web:WebSuite.test_unit_desktop, /web:WebSuite.test_hoot, /web:WebSuite.test_qunit_desktop, /web:MobileWebSuite.test_unit_mobile
12/05/2026 06:36:24 PM INFO
Post install tests: 9 parallel builds balanced by the test time measured on 19.0, the longest about 233 minutes of tests
12/05/2026 07:12:45 PM INFO
Post install tests: no parallel build added, the master has 49 of its 36 build containers taken
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan57_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan60_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan64_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of project.project() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of crossovered.budget.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of estimate.actual.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of estimate.report() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of estimate.create.budget.wizard.line() have the same label: Departments. [Modules: None and None]
12/05/2026 10:32:17 PM WARNING
Subbuild #447114: odoo.addons.base.models.ir_model: Two fields (x_plan7_id, x_plan67_id) of account.analytic.line() have the same label: Departments. [Modules: None and None]