I need to override
onchange_picking_type(picking_type_id,partner_id)
from stock.view_picking_form.
But I need to have the selected carrier_id as well in the parameters to do something with it.
How can I do that?
I can't use the new @api.onchange when there is already an existing v7 method in parent module because Odoo doesn't want to support that (very frustrating). They apparently live in a world we everything is in V8! Ok I feel better now...
I tried to do that in inherited view. It doesn't seems to do anything different.
<field name="partner_id" position="attributes">
<attribute name="on_change">onchange_picking_type(picking_type_id,partner_id,carrier_id)</attribute>
</field>
Any idea?