Domain in onchange have been deprecated for a while and it generates this kind of warning :
onchange method RmaOrderLine._onchange_product_id returned a domain, this is deprecated
Also, it is not perfect, because it does not apply in case there is no change on the product. (If I open an existing rma order line with a product, I can choose any lot, because the onchange was not played.
Domain in onchange have been deprecated for a while and it generates this kind of warning : onchange method RmaOrderLine._onchange_product_id returned a domain, this is deprecated
Also, it is not perfect, because it does not apply in case there is no change on the product. (If I open an existing rma order line with a product, I can choose any lot, because the onchange was not played.
And there is already an xml domain in an other
rma.order.line view
: https://github.com/ForgeFlow/stock-rma/blob/16.0/rma/views/rma_order_view.xml#L195So I don't see any reason not to remove this onchange domain, unless I am missing something ?
@AaronHForgeFlow FYI