f9a5020094cc8091e75d4996493ecb93d71ebf3f
When creating the POS journal entry for a POS session (or one of its orders when realtime inventory management is enabled), it's possible for the stock picking to fail if a product requires a serial number or lot id and none was provided. After the POS session is closed, this stock picking can be corrected and the accompanying inventory valuation entries will be created. However, when using anglo-saxon accounting, the amount on the COGS line in the POS journal entry will be 0. That's because the current implementation sums up the values from the stock valuation layers to determine this amount. If the stock picking failed, there will be no stock valuation layers so the result is 0. In other workflows in Odoo like creating an invoice from a sales order before the delivery is validated, the implementation deals with this case by falling back to the standard price if no stock valuation layers are available. This fix does the same for the POS journal entries. opw-2988701 closes odoo/odoo#108966 X-original-commit: 4aeed49d86b0dfb8e2d1555384458eb6e3358d67 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Merel Geens <mege@odoo.com>
…
…
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%