Commit Graph

25 Commits (6a0b55ca5ce40199298a0561c8eff0fe4eab503d)

Author SHA1 Message Date
oca-travis 6a0b55ca5c [UPD] Update web_tree_dynamic_colored_field.pot
[UPD] README.rst
2024-10-16 14:11:17 +07:00
Tran Thanh Phuc 99a8a724df [MIG] web_tree_dynamic_colored_field: Migration to 14.0 2024-10-16 14:11:17 +07:00
Tran Thanh Phuc e60c18e6f7 [IMP] web_tree_dynamic_colored_field: black, isort, prettier 2024-10-16 14:11:17 +07:00
oca-travis c0b562b2ef [UPD] Update web_tree_dynamic_colored_field.pot
[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/
2024-10-16 14:11:17 +07:00
Guewen Baconnier be3b3fc046 run pre-commit with new prettiers 2024-10-16 14:11:17 +07:00
Guewen Baconnier 18d747b20e Run pre-commit and fix js issues after rebase on new config 2024-10-16 14:11:17 +07:00
Guewen Baconnier 928bb8f5dd Remove support of dynamic colors on <tree>
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.
2024-10-16 14:11:17 +07:00
Guewen Baconnier 436e9514ba [MIG] web_tree_dynamic_colored_field: Migration to 13.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] 7024f8d58b (diff-e9acd2f731cc01f302055b6e232df983)
2024-10-16 14:11:17 +07:00
Guewen Baconnier b823c3a074 [REF] web_tree_dynamic_colored_field: Black python code 2024-10-16 14:11:17 +07:00
OCA Transbot bc63e5912c OCA Transbot updated translations from Transifex 2024-10-16 14:11:17 +07:00
OCA-git-bot e6978c79d5 [UPD] README.rst 2024-10-16 14:11:17 +07:00
Adrià Gil Sorribes 3a1c35a7da remove pyeval class and fixup 2024-10-16 14:11:17 +07:00
mreficent c958606fb9 web_tree_dynamic_colored_field: Migration to 12.0 2024-10-16 14:11:17 +07:00
Damien Crier e559ae8b00 Update README because of wrong license
Found in this commit: 3965057913
2024-10-16 14:11:17 +07:00
QS5ELkMu 766a461f9f [FIX] Issue #906 2024-10-16 14:11:17 +07:00
Luis Adan ce176a6f22 [IMP] web_tree_dynamic_colored_field: Update README.rst (#899)
Use more than one color condition
2024-10-16 14:11:17 +07:00
Guewen Baconnier b5ef33f9d0 web_tree_dynamic_colored_field: correct options examples in readme 2024-10-16 14:11:17 +07:00
Guewen Baconnier 8050370009 web_tree_dynamic_colored_field: Assume that color may not start with '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">
2024-10-16 14:11:17 +07:00
Guewen Baconnier 50d985d5cf web_tree_dynamic_colored_field: Parse field options with pyeval
The options in <field> attributes are parsed as python expressions:
d18976d748/addons/web/static/src/js/services/data_manager.js (L273)

And the options in <button> are parsed as json...
d18976d748/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.
2024-10-16 14:11:17 +07:00
Artem Kostyuk 2bae685009 [MIG] web_tree_dynamic_colored_field: Migration to 11.0 2024-10-16 14:11:17 +07:00
jesusVMayor 4ffc89b0af Migration of web_tree_dynamic_colored_field to 10.0 2024-10-16 14:11:17 +07:00
Holger Brunn 7e61ee08b0 web_tree_dynamic_colored_field v9
demo view
2024-10-16 14:11:17 +07:00
Holger Brunn c5b7eaa0fc delete unused code, move files to standard locations
support color_field attribute

update manifest

higher version number bump

typo
2024-10-16 14:11:17 +07:00
Damien Crier 7963a1248f [IMP] rename module to 'web_tree_dynamic_colored_field' 2024-10-16 14:11:17 +07:00
OCA Bot eeab75971e Initial commit 2024-10-08 12:49:40 +00:00