Commit Graph

17 Commits (b823c3a074d86f37c35d220f9a93ae38410fce6e)

Author SHA1 Message Date
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