Daily updates from Odoo
Wednesday, June 19, 2024
1 change
Code cleanup and technical improvements
Brazilian electronic invoicing warnings are now consolidated into one clearer message system with actions users can take. This makes invoice sending issues easier to understand and helps avoid inconsistent warning behavior across screens; subscription flows also keep email sending behavior stable when Peppol is installed.
Original PR description
This commit is part of the bigger commit in the community version.
This commit refactors all warning fields in account.move.send object into one Actionable Error JSON field, and adds actions on all of them.
Previously, whenever we wanted to show a warning field, we created a new field for each `account.move.send` inherits, and they all differ from each other: some uses Char, some uses Text, etc.
With the new `actionable.error` field, it's a good time to remove all the warning fields from different localizations into one object: `send_warning_message` from `account.account_move_send`
To avoid conflicts, warning keys are also rewritten to the following format: `{module_name}_warning{*}`, where `*` specify any required detail to avoid further conflicts within one module.
task-id: 3810105
related community-PR: https://github.com/odoo/odoo/pull/166733