Nicolas Martinelli a9a9f624e4 [FIX] purchase: update of PO line
DO NOT FORWARDPORT!!!

An issue occurs when a PO line is updated following a reordering rule or
a MTO rule.
As an example, a product is configured as follow:
- UoM: Units
- Purchase UoM: Box of 25 Units

To reproduce:
- Sell one unit of product, then run the scheduler
  => it creates a procurement for one unit, but since the product is
  purchased by box of 25, it creates a PO with a box of 25.
- Sell one unit of product, then run the scheduler
  => it creates a procurement for one unit, find the existing PO line,
  round in the purchase UoM (so it gives one box of 25), then add it to
  the PO line.

The solution is to recomputed the necessary quantity at the very end of
the process. For a given PO line, list all procurements and adjust the
quantity.

This is a partial fix, since it doesn't take into account the potential
new price of the seller. However, that would require a major rewrite of
this part of the code, since it was originally written for v8 which
handles the PO line quantity recomputation sequentially instead of
batch.

opw-688916
2016-12-20 18:29:16 +01:00
2016-12-20 18:29:16 +01:00
2015-02-08 23:00:10 +01:00
2015-09-08 15:45:09 +02:00
…
…
2015-10-21 13:45:37 +02: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, 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.

If you are a developer you may type the following command at your terminal:

wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python

Then follow the developer tutorials

For Odoo employees

To add the odoo-dev remote use this command:

$ ./odoo.py setup_git_dev

To fetch odoo merge pull requests refs use this command:

$ ./odoo.py setup_git_review
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%