e41a8b924c368f4d73d663567a0ace1fefdcbb38
Before this commit, the `name_get` method is override in `sale_timesheet` module to add the price_unit when more than one SOL is shown for the same product in the same Sale Order. This override adds the price unit only when the `with_price_unit` key is in the context, so it is only used in the `sale_line_id` field defined in `project.project` and `project.task` models and also `so_line` field in `analytic.account.line` model when the user wants to set a SOL for those models. However, the Sales section displayed in project right side panel is added in `sale_project` and so we cannot use the override in that module since `sale_timesheet` is not installed when `sale_project`. This commit moves the part concerning the `with_price_unit` of the `name_get` override defined in `sale_timesheet` module to `sale_project` one. And then, we will use the context key in the Sales section to display the price unit when there are more than one SOL for a same product in a same Sales Order. task-2814466 Part-of: odoo/odoo#88219
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%