Friday, April 17, 2020
3 changes · master
Enhancements to existing features
The SMS composer now uses editable computed fields to prepare message settings automatically while still allowing users to change them. This keeps the existing behavior but makes message creation and updates more consistent across draft, edit, and save flows.
Original PR description
Task [#2229050](https://www.odoo.com/web#id=2229050&action=333&active_id=1251&model=project.task&view_type=form&cids=1&menu_id=4720) Move from **onchange** / **default_get** to stored editable **computed fields**. Behavior should be the same (computed or set by user), with support of create / write / onchange field update without additional code. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo now checks whether a bank account already exists before creating one while setting up or updating an accounting journal. This helps avoid duplicate-account errors and makes bank journal creation smoother when users enter an account number directly.
Original PR description
When creating or writing on a account.journal model, it is possible to pass a char representing the bank account number into bank_acc_number instead of passing directly a res.partner.bank. In case we pass bank_acc_number the system will try to create automatically a new res.partner.bank for us, however if a res.partner.bank already exists with the same account number it will result in an error as we have a unicity constraint for that. Therefore it is best to first seach for such an existing res.partner.bank before trying to create it. The search is done on the sanitized_account_number field as the unicity constraint is on that field. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Updates enterprise mail tests to stay aligned with recent notification changes in the main Odoo platform. This helps ensure SMS-related mail notifications continue to be validated correctly during upgrades and future releases.
Original PR description
Enterprise counterpart of https://github.com/odoo/odoo/pull/44170 Upgrade https://github.com/odoo/upgrade/pull/918