Indeed, you have to adjust all fields by XML-RPC, but that's the same flaw of all OpenERP objects (for example, on invoices, you don't get automatically filled all the account related fields when you write partner_id as if you were introducing it on web client).
You have two options:
- Fill complete dictionary with base=1, base_ext=-3, price_discount=-1 and price_surchage=<fixed price>.
- Fill base_ext=-3 and price_surchage=<fixed_price>, and then call XML-RPC on_change method and update dictionary with the returned value.
As you have seen, the "New Price = Base Price * (1 - 1) + price" trick is used.
Hi, Lionel,
Indeed, you have to adjust all fields by XML-RPC, but that's the same flaw of all OpenERP objects (for example, on invoices, you don't get automatically filled all the account related fields when you write partner_id as if you were introducing it on web client).
You have two options:
- Fill complete dictionary with base=1, base_ext=-3, price_discount=-1 and price_surchage= <fixed price>. <fixed_ price>, and then call XML-RPC on_change method and update dictionary with the returned value.
- Fill base_ext=-3 and price_surchage=
As you have seen, the "New Price = Base Price * (1 - 1) + price" trick is used.
Regards.