Monday, January 16, 2023
1 change · master
New functionality added to Odoo
Service-related screens now show sales order lines with more helpful details, such as the order reference, line name, and price only when needed to tell similar lines apart. This makes it easier for users in project and planning workflows to choose the correct sales line and reduces confusion from duplicate-looking entries.
Original PR description
- Impacted modules: - sale_service (new module - installed only if sale AND (project OR planning) are installed) - sale - sale_project - Description: When looking for a SOL in services apps, the…
- Impacted modules:
- sale_service (new module - installed only if sale
AND (project OR planning) are installed)
- sale
- sale_project
- Description: When looking for a SOL in services apps, the displayed
name is of the form "SO ref - SOL name - unit price (partner
ref/name)". The presence of some of those elements may vary:
- unit price is only displayed if it allows to clarify an
ambiguity (i.e. two SOL with identical name but different unit
price in the same SO).
- partner name is only used if the partner ref does not exist.
- Implementation: The behavior currently existing in sale needed to be
extended for services apps. This has been done with the following
changes:
- sale:
- sale.order.line: Current behavior for the name_get (display
partner ref) has been extended (display parnter name if has no
ref) and split a additional method that is extended in a new
module called..
- .. sale_service:
- sale.order.line: The additional behavior is extended to
display the unit price of the SOL when it avoids ambiguity. A
context parameter is used to keep this behavior inside
services apps.
task-3052812