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

Syncing from upstream OCA/web (16.0) #1456

Merged
merged 42 commits into from
Feb 26, 2025
Merged

Syncing from upstream OCA/web (16.0) #1456

merged 42 commits into from
Feb 26, 2025

Conversation

bt-admin
Copy link

bt_gitbot

damdam-s and others added 30 commits February 25, 2025 09:55
support color_field attribute

update manifest

higher version number bump

typo
The options in <field> attributes are parsed as python expressions:
https://github.com/odoo/odoo/blob/d18976d7489f6cd1c904f72557104807233a178d/addons/web/static/src/js/services/data_manager.js#L273

And the options in <button> are parsed as json...
https://github.com/odoo/odoo/blob/d18976d7489f6cd1c904f72557104807233a178d/addons/web/static/src/js/services/data_manager.js#L411

This code only support the <field> element because I'm not sure there
is a use for the <button> element.
…'color_field'

The index at 0 in the following code:
  var colorField = this.arch.attrs.colors.split(';')
  .filter(color => color.trim().startsWith('color_field'))[0]
Was failing on such valid xml:
  <tree string="Buffer monitor"
        colors="red:procure_recommended_qty &gt; 0">
Use 'options' instead of 'colors' on tree views

The colors attribute has been removed from the RelaxNG schema in
Odoo [0], so use the 'options' instead.

Closes #1479

[0] odoo/odoo@7024f8d#diff-e9acd2f731cc01f302055b6e232df983
The 'colors' and 'options' fields are not supported by the RelaxNG
schema of the <tree> element. Remove the support until we find a
good solution for this.
[UPD] README.rst
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_tree_dynamic_colored_field
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_tree_dynamic_colored_field/
[UPD] README.rst
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-15.0/web-15.0-web_tree_dynamic_colored_field
Translate-URL: https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_tree_dynamic_colored_field/

Added translation using Weblate (French)
@bt-admin bt-admin added the 16.0 label Feb 26, 2025
@bt-admin bt-admin merged commit dc0198d into brain-tec:16.0 Feb 26, 2025
4 checks passed
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.26%. Comparing base (cf011f2) to head (2bcb2bf).
Report is 235 commits behind head on 16.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             16.0    #1456   +/-   ##
=======================================
  Coverage   91.26%   91.26%           
=======================================
  Files         133      133           
  Lines        1511     1511           
  Branches      113      113           
=======================================
  Hits         1379     1379           
  Misses        104      104           
  Partials       28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.