Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX?] preserve translate values when updating a field/model when its inherited #99

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

benwillig
Copy link

Description of the issue/feature this PR addresses:
When inheriting from a field and changing its attributes, Odoo will override the translatable fields of ir.model and ir.model.fields, losing all of the translations. This commit preserve the old translations when the term we want to use is the same that we find in english lang

Current behavior before PR:
Changing an attribute when inheriting a field will erase translations loaded by previous modules.

Desired behavior after PR is merged:
Loaded translations are kept if source term is the same.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

… inherited

When inheriting from a field and changing its attributes, Odoo will override the translatable
fields of ir.model and ir.model.fields, losing all of the translations. This commit preserve the old translations when the term we want to use is the same that we find in english lang
@benwillig
Copy link
Author

@sbidoul I would like to have your point of view about this one before pushing it to odoo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant