Thursday, February 9, 2023
2 changes · master
Enhancements to existing features
This update makes form button definitions easier and more consistent for Odoo developers, reducing confusion when configuring actions in forms. It keeps existing behavior working while introducing clearer button options, which should lower maintenance effort and reduce future mistakes.
Original PR description
The current form buttons are pretty wonky with @type/@name (the latter changing semantics based on type) versus @special, which makes them unnecessarily challenging to learn. Since there are 14 competing standards, develop a universal standard that covers all use cases! Lift `@type` to its own attributes matching `special`, and move `@name` to its value. Also remove support for action ids and thus (eventually) the need for interpolation altogether. Currently this is implemented as sugar over the existing model as the client does not support the new protocol. Possible alternative: move `special` over to `type="special"` and `name="$special-action`. Advantage is that reduces the number of attributes, drawback is that keeps the oddity of two linked attributes.
Live Chat channel setup text can now be translated, including the button label, default greeting, and input placeholder. This helps businesses provide a more localized chat experience for customers in different languages.
Original PR description
Description of the issue/feature this PR addresses: The following fields are used in the channel setting: 1. button_text 2. default_message 3. input_placeholder  but cannot translate them because fields are not translatable. PR makes those fields translatable. Current behavior before PR: We are not able to make translations to the above fields. Desired behavior after PR is merged: We are able to make translations to the above fields. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr