Nicolas Martinelli c0ccf6f103 [FIX] purchase_stock, stock_landed_costs: bill after LC
1. Create a product with a category AVCO + Automated and set a price
   difference account
2. Create a Purchase Order for 1 unit at a value of 1000,
3. Stock entry at receipt
                               D         C
   Stock interim received             1000
   Stock valuation          1000
4. Create a vendor bill for a Landed cost, post it
                               D         C
   Stock interim received    100
5. Create the landed cost from the bill and apply it on the receipt of
   point 3
                               D         C
   Stock valuation           100
   Stock interim received              100
6. Create the vendor bill for the initial PO

Current entry is not correct:
                               D         C
Stock interim received      1000
Price difference account               100  --> Shouldn't take place
Stock interim received       100            --> Shouldn't take place

This happens because the valuation layers of the landed cost are taken
into account when computing the unit price of the product.

This shouldn't be the case: when computing the price difference between
the invoice price and the stock move price, LC should be filtered out.

opw-2183511

closes odoo/odoo#47804

X-original-commit: 9bd3feb7f8778ba65e1974ef012ca3a4608878b1
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-23 08:08:01 +00:00
2020-02-13 11:45:39 +00:00
2020-03-17 09:48:34 +00:00
…
2019-10-03 12:48:09 +00:00
…
2015-09-08 17:58:38 +02:00
2019-11-08 11:24:04 +00:00
2019-10-03 12:48:09 +00:00

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%