38eb5346c75fb97f215d59d208978cbc27a82b6e
- Create 2 rates: 2019-05-01: 1.0 2019-06-01: 0.5 - Set-up a product A in AVCO - Create a PO for A on 2019-05-15 - Receive the product after 2019-06-01 The AML are created with a rate of 0.5, but the product cost is updated with the rate of 1.0. This is because the stock move date is used when it is still assigned, and not done yet. As described in: https://github.com/odoo/odoo/blob/2f789b6863407e63f90b3a2d4cc3be09815f7002/addons/stock/models/stock_move.py#L36 The date is the scheduled date until the move is done, then it is the date of the actual move processing. We change the date to today's date, since it is the value used to update the move date: https://github.com/odoo/odoo/blob/2f789b6863407e63f90b3a2d4cc3be09815f7002/addons/stock/models/stock_move.py#L1143 opw-2006368 Note: the test has been slightly refactored to avoid an inconsistency between `fields.Date.context_today` and `fields.Datetime.now`. Now, they both return the same day. Moreover, the date is updated before each action. closes odoo/odoo#34444 Signed-off-by: Nicolas Martinelli (nim) <nim@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, 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%