diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-11-20 09:45:04 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-11-20 13:55:04 +0100 |
| commit | 902c1bf08527b675613a17e9ad7456d7d3899420 (patch) | |
| tree | 09e2cef20081951c9490e1c1a352df2abe06bea0 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | d38f916cd82db0b52f55991ac68dd863fbdfd8d9 (diff) | |
[IMP] purchase: split onchange_product_id
This commit splits the changes which affect the product_id and the
changes which affect the product quantity. The main reason is that a
product change should trigger the recalculation of the price unit,
while a change in the quantity should not trigger product-specific data
recalculation (such as the name or the taxes).
The original issue was the following:
- set a supplier for a product with a minimum quantity larger than 1.0
- create a PO for this supplier and this product: since the minimum
quantity is not met, no tax is set on the line.
- change the quantity to the minimum quantity of the supplier
- the tax is set on the line, but a warning pop up confuses the user by
asking if it is necessary to discard the line since Odoo and the user
changed the same line.
This commit prevents this warning, and moreover it will set the taxes on
the product right away.
Bonus: if you change the product of an existing line, it will not keep
the privious quantity/price values, which was the case before.
opw-656729
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
