Commit Graph

232 Commits (05ec5b7182f3097a6e65d0ae5cb071cb6c259d9c)

Author SHA1 Message Date
jurgis a1d5e84bea [IMP] web_tree_dynamic_colored_field: pre-commit auto fixes (before v17) 2024-10-16 14:11:17 +07:00
OCA-git-bot 1f84721f26 [BOT] post-merge updates 2024-10-16 14:11:17 +07:00
Alexandre D. Díaz 76f0a3cc17 [UPD] web_tree_dynamic_colored_field: readme usage section 2024-10-16 14:11:17 +07:00
oca-ci 4fc0a27646 [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-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)
2024-10-16 14:11:17 +07:00
Adam Heinz 3bad543004 [MIG] web_tree_dynamic_colored_field: Migration to 15.0 2024-10-16 14:11:17 +07:00
Adam Heinz aad0890b89 [IMP] web_tree_dynamic_colored_field: black, isort, prettier 2024-10-16 14:11:17 +07:00
Sylvain LE GAL 0626eea00f [IMP] web_tree_dynamic_colored_field : Add bg_color_field option 2024-10-16 14:11:17 +07:00
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
trisdoan 51616198d9 [MIG] web_notify: Migration to 18.0 2024-10-14 08:54:19 +07:00
trisdoan 6997e5940e [IMP] web_notify: pre-commit auto fixes 2024-10-14 08:53:21 +07:00
Nikul-OSI 51412c2cc8 [MIG] web_notify: Migrated in v17 2024-10-14 08:53:21 +07:00
trisdoan decbb9173f [IMP] web_notify: pre-commit auto fixes 2024-10-14 08:53:21 +07:00
SilvioC2C 0a7dbf58e4 [IMP] web_notify: allow passing custom parameters to notifications 2024-10-14 08:53:21 +07:00
OCA-git-bot c77fa3a510 [BOT] post-merge updates 2024-10-14 08:53:21 +07:00
David 8a0c6237e7 [IMP] web_notify: action button name and close
- We can now set a button name to the notification action.
- We can set an icon button as well.
- After the button is clicked, the notification gets closed.
2024-10-14 08:53:21 +07:00
Rodrigo Macedo 09d844578a Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (19 of 19 strings)

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/pt_BR/
2024-10-14 08:53:21 +07:00
mymage 810ceb71ff Translated using Weblate (Italian)
Currently translated at 100.0% (19 of 19 strings)

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/it/
2024-10-14 08:53:21 +07:00
Weblate 7342526073 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/
2024-10-14 08:53:21 +07:00
OCA-git-bot cad90eff4d [BOT] post-merge updates 2024-10-14 08:53:21 +07:00
oca-ci 2a3c6f99e6 [UPD] Update web_notify.pot 2024-10-14 08:53:21 +07:00
OCA-git-bot aeff55ab9d [BOT] post-merge updates 2024-10-14 08:53:21 +07:00
DavidJForgeFlow 80f755ce20 [IMP] web_notify
When trying to use the notify function that comes from a normal user with sudo flag enabled, it wasn't letting the user access it. Adding the su flag to the check should allow sudo users using this feature.
2024-10-14 08:53:21 +07:00
Adriano Prado 573b591859 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (18 of 18 strings)

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/pt_BR/
2024-10-14 08:53:21 +07:00
mymage cb5e526da3 Translated using Weblate (Italian)
Currently translated at 100.0% (18 of 18 strings)

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/it/
2024-10-14 08:53:21 +07:00
OCA-git-bot f63f786295 [UPD] README.rst 2024-10-14 08:53:21 +07:00
Ivorra78 f46585e8f6 Translated using Weblate (Spanish)
Currently translated at 100.0% (18 of 18 strings)

Translation: web-16.0/web-16.0-web_notify
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/es/
2024-10-14 08:53:21 +07:00
Guewen Baconnier b61c8b8256 Add possibility to return an action in a notification 2024-10-14 08:53:21 +07:00