Friday, August 10, 2018
4 changes · master
Enhancements to existing features
Server actions can now work with selected records in a more direct and consistent way. This is a small internal improvement that makes customization code easier to write and maintain, without changing everyday user workflows.
Original PR description
Before this commit, you needed to do something like this to construct a "`self`": `self = record and record or model | records and records or model` after this commit you can just do: `for item in record | records:` It's just cosmetics and more akin to the new RecordSet api. Maybe the right thing to do on master? -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Server actions can now use common decimal calculation helpers when running automated Python logic. This helps businesses avoid rounding-related mistakes in comparisons, especially where company-specific precision rules matter.
Original PR description
Before this commit, in python code server actions, there was no (convenient) way to do a float comparison taking into account a digital precision supplied from the environment. This commit includes the most commonly used float arithmetic utilities from the `tools` package to te evaluation context. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Marketing campaigns can no longer be created using the mail blacklist as the target audience. This helps avoid contacting people who have opted out of mass mailings and keeps campaign setup aligned with consent expectations.
Original PR description
Task : https://www.odoo.com/web#id=33224&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720 As Mail Blacklist is a list of recipient that doesn't want to receive mass mailing anymore, it does not make sens to allow to create a marketing campaing on this model.
The subscription form now places the Start Date on the left and the Date of Next Invoice on the right. This matches the natural reading order, making key subscription dates easier to scan and understand.
Original PR description
Start Date on the left and Date of Next Invoice on the right of the form view