[FIX] sale: onchange_product_uom
The function "product_uom_change" was built to reset the price unit of a SO line when the uom was changed. Before this fixmaster
503820a, the price unit of the SO line only depended on the price list then it was not needed to pass the fiscal position to this function. After this fix
503820a, the price unit of a SO line also depends on the taxes set on the SO line(e.g.:if an included tax is deleted, the price unit must be recomputed without this tax). Then to recompute the unit price, the function "product_id_change" must take into account the fiscal position set on the SO to consider the right taxes to recompute the unit price. The fiscal position set on a SO must be passed to onchange_product_uom each time it will be called because the price unit will be recomputed.
Reference in new issue