Monday, October 19, 2020
4 changes · master
Enhancements to existing features
This update strengthens automated checks so duplicate functions, classes, or methods are caught before they can cause issues. Several affected areas were cleaned up to meet the new check, reducing the chance of hidden mistakes reaching users.
Original PR description
With this commit, pylint will now point out when the same function/class/method is defined more than once in the same scope which is a recurring mistake Linked to https://github.com/odoo/enterprise/pull/14090 Prevents errors such as https://github.com/odoo/odoo/issues/59683 (and many others) from even happening
The stock module now prevents creating multiple reordering rules for the same product at the same location. This avoids duplicate replenishment actions that could lead to unnecessary purchases or stock moves.
Original PR description
This commit adds a constraint on model stock.warehouse.orderpoint (reordering rule) to ensure two orderpoint are not set on the same product and on the same location. This is an issue as the replenishment will be done multiple times in case of duplicated rules. Task : 1939567 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Mailings and their tracking sources now receive clearer automatically generated names when users do not enter one. Duplicate names are handled with a simple counter, making campaigns easier to identify and reducing confusing or unnecessary demo translation entries.
Original PR description
PURPOSE
=======
This commit improves the auto generated name of the mailings and of the UTM source.
Currently, this name is auto generated but is not very user-friendly.
SPECIFICATIONS
=======
We want to have a unique mailing/source name.
When no name is given, we automatically generate one with the following format
"<subject> (Mailing created on <date>)".
If the name is duplicated, we add a counter after it ("<name> [X]").
Update the demo data to not auto-generate the name and to avoid creating unnecessary
i18n lines.
LINKS
=======
Task 2245823The Project portal now shows the creation date with the label "Created On" instead of the generic "Date". This reduces confusion by matching the field's meaning more clearly for users viewing project information.
Original PR description
Before this commit, Label for `create_date` was `Date` which was confusing for the user since there is no field with label `Date` in the backend. Now we use `Created On:` as the label. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr