75995f5965b36b07dcce67375fd0031b32b766ef
A product can be sell or expense, but for some cases the product configuration make both flow incompatible. Indeed, when expensing the delivered qty was computed based on the AAL total amount, and manually editable. Before the delivered qty refactoring, reexpensing erased the manual value. This came from the fact product expense policy is wrongly used: the delivered qty of expensable product is not manually editable, which is a problem for milestones (and other consumable product when stock is no installed). The new refactoring of deli qty API force the expense line to be completely readonly, but the problem is not completely solved; we still can't sell properly a expensable product. To do so, the SO line must be flag as coming from an expense or vendor bill, and the reinvoice product policy should only be used to calculate the price of new SO line. This commit: 1) reinforces the readonly caracter of expense SO line, by making the expense policy independent of the computation method for delivered qty on SOL. 2) prevents generate picking when updating ordered quantity on a expense SOL with a stockable product. 3) allows service to sell a task with zero hours as ordered quantity. (it still prevents task/project creation for expense SOL). 4) does not increment anymore an existing line when expensing product at sales price and invoicing at 'delivered qty'. The only line to be incremented will be the expense line (and not the native SOL).
…
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%