diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-04-29 16:36:27 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-05-07 11:19:28 +0200 |
| commit | 610a46109973a2d3be20c853f5210cfa11eac211 (patch) | |
| tree | 4b2481ec4957de38a0386b33871e5acf1eed5afd /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 5b6dcbb3a8ce22a1ba7a4a573ff66c42f34ca746 (diff) | |
[FIX] purchase: update and cancel of purchase order line takes into account existing procurements
Update:
When an existing purchase order line is updated, for example if a new procurement was required,
we check if the sum of existing running linked procurements is larger than the quantity in the
purchase order. If it is the case, we update the quantity and the unit price accordingly.
Without this fix, we systematically add the procurement quantity (or the provider minimum quantity)
to the purchase order line, even if the sum of the procurements is smaller than the ordered
quantity.
Cancel:
When a procurement is cancelled, we recompute the unit price of the associated purchase order
according to the quantity and make sure the provider minimum quantity is met. If the required
quantity is zero, we cancel and unlink the purchase order line.
opw: 632175 and 632176
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
