-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] web_company_color: Set defaults hardcoded to avoid errors charging the assetbundle #2902
Conversation
…ing the assetbundle When trying to charge the assetbundle the theme-color("primary") function is not found what causes problems when trying to set the default values. With this changes the default value is the value set on https://github.com/odoo/odoo/blob/ad9f8fae717aae4cad5b3715c1f73ee906b64f8d/addons/web/static/src/scss/primary_variables.scss#L55 this change avoid the problems and the module works fine. Addapted too the class for required fields.
Added too the migration script for the companies that the change has not beeing applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To hardcode the colors is the only option here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍
This PR has the |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 779767a. Thanks a lot for contributing to OCA. ❤️ |
When trying to charge the assetbundle the theme-color("primary") function is not found what causes problems when trying to set the default values.
With this changes the default value is the value set on https://github.com/odoo/odoo/blob/ad9f8fae717aae4cad5b3715c1f73ee906b64f8d/addons/web/static/src/scss/primary_variables.scss#L55 this change avoid the problems and the module works fine.
Addapted too the class for required fields.
cc @Tecnativa TT50098
ping @sergio-teruel @pilarvargas-tecnativa