Review usage of get_multivalue and set_multivalue
The usage of such method should follow some rules in order to work correctly for #4080 (closed).
-
default_
methods must useget_multivalue
but withpattern
as keyword argument and they must have anon_change_
method for the depending pattern (ex:on_change_company
) to set new default. -
*_used
property may callget_multivalue
but we must set the right context -
get_purchase_unit_price
,get_sale_unit_price
andget_context_formula
are exceptions that can useget_multivalue
There should be no other use cases.
set_multivalue
should almost never be used (except to update the product cost) as multivalue is for referential document and they should be updated only by users.