Tuesday, March 10, 2020
7 changes · master
Enhancements to existing features
Sales reports now include orders even when they do not contain any order lines, making reporting totals and order lists more consistent. The quotation filter also clearly includes quotations in both draft and sent stages, helping teams track early sales activity more accurately.
Original PR description
task:https://www.odoo.com/web?#id=2122948&action=327&model=project.task&view_type=form&menu_id=4720 pad: https://pad.odoo.com/p/r.52529411dfe661dd962d85ad7e60bc97 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
When users duplicate a record, editable calculated fields now keep the value from the original record when that field is allowed to be copied. This avoids unexpected recalculation and helps copied records better match the user's saved data.
Original PR description
Purpose of this commit is to let computed stored editable fields being copied if their field class allows it. Indeed those fields are fields whose value is computed based on some triggers but can also be updated manually by users. When copying a record it makes sense to consider this value has been updated and allow its copy if original field allows it. Either it was computed, and copied value will be correct without having to call computation again. Either it was updated and copied value will be the one the user entered. Without this fix, an edited field is not copied. Its value will be computed again, leading to an incoherent copy behavior. Task ID 2209163 PR #46777
Custom product information, such as personalized text or images, is now passed from sales and stock flows into related manufacturing orders, purchase orders, and purchase requisitions. This helps businesses that sell customized products keep customer-specific details visible throughout fulfillment and procurement.
Original PR description
Description of the issue/feature this PR addresses: <b>Task: </b>https://www.odoo.com/web?#id=1970476&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 <b>Pad: </b> https://pad.odoo.com/p/r.c7185b654635d21d65faae0cd5facc04 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
Subscription lines now show the unit price and discount according to the discount policy configured on the subscription's pricelist. This makes subscription pricing clearer and consistent with what customers expect to see on sales documents.
Original PR description
Purpose: -Display value of 'Unit Price' and 'Discount' of sale subscription line based on discount policy of pricelist which is set on the subscription. task- 2165171
Resolved issues and error corrections
This update prevents forms from crashing when related record lists contain another related record list that is filled automatically. Users can now open those records reliably and see the expected nested details, improving stability for complex data entry screens.
Original PR description
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
Code cleanup and technical improvements
Event-related settings now use stored editable values so information can be filled automatically while still allowing manual changes. This reduces duplicated logic, keeps event, website event, ticketing, and question behavior more consistent, and improves demo data and event copying behavior.
Product barcodes now remain visible on product templates even when the related product variant is archived. The update also prevents templates with multiple variants from being incorrectly archived when a variant is reactivated, helping users keep product records accurate and accessible.
Original PR description
**Barcode field disappears in template(product.template) when you archive the same record from product('product.product')'**
Here we are making sure that even when a product is archived, its barcode is still visible in template.
We had to change barcode from a related field to a computed field.
Task- https://www.odoo.com/web#id=1978559&action=333&active_id=966&model=project.task&view_type=form&menu_id=4720
Pad- https://pad.odoo.com/p/r.1118e013e6c395157a91b17029dcea74
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prOriginal PR description
PURPOSE Try to 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…
PURPOSE
Try to 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.
SPECIFICATIONS: GLOBAL RULES
Update classic fields updated in some cases by onchange and/or default methods
by fields with store=True, readonly=False. It means their value comes either
from manual user input, either from trigger based computation.
Remove onchange and default_get when possible, leading to an unique computation
method and clearing fields definition.
Also clean some fields definition inconsistencies, notably required fields
that should instead be correctly computed or default that have no real meaning.
SPECIFICATIONS: OTHER COMMITS
Perform some light code cleaning before updating fields.
Keep some explicit onchanges:
* onchange partner on registration: required as UI flow is a bit different
from automated code update;
* onchange track boolean on event: allow to simplify fields dependencies;
Rename event type default_registration_max to seats_max to match
naming.
Improve event type data and demo
See sub commits for more details.
LINKS
Task ID 2089156
Community PR #42911
Upgrade PR odoo/upgrade#912