rma
rma copied to clipboard
[14.0][IMP] rma_sale: improve onchange methods
Changes:
_onchange_partner_id: Before the order_id was always set to False Now it's only set to False if there is no partner selected or the selected order_id.partner_id is not a child of the current selected partner_id.commercial_partner_id
_onchange_order_id: if the order_id is set the corresponding partner_fields are getting set
New onchange methods:
_onchange_order_id_product_id: if the order_id and the product_id is set it tries to set the move_id with the latest shipped move with the same product_id as well as the picking_id
_onchange_picking_id: if the picking and product ist tries to set the move by selecting the corresponding move