Guewen Baconnier
9e99022497
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 > 0">
7 years ago
Guewen Baconnier
9394c56911
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.
7 years ago
Artem Kostyuk
3965057913
[MIG] web_tree_dynamic_colored_field: Migration to 11.0
7 years ago
Holger Brunn
89fdf5d983
web_tree_dynamic_colored_field v9
demo view
8 years ago
Holger Brunn
313cfa2595
delete unused code, move files to standard locations
support color_field attribute
update manifest
higher version number bump
typo
9 years ago
Damien Crier
104fd9f821
[IMP] rename module to 'web_tree_dynamic_colored_field'
9 years ago