[FIX] purchase: purchase stat button list domain
From revision cb01be2,
the purchase stat button is only on product template form,
and no longer on the product variant form.
The domain of the list that this purchase button
opens has not been adapted according to this change,
the domain was still applied as coming from a product
variant form rather than a product template form.
As a result, it opened the purchases of products variants
having as ID the product template ID from which you came
from before hitting this button.
opw-669618
This commit is contained in:
@@ -536,7 +536,7 @@
|
||||
|
||||
<record model="ir.actions.act_window" id="action_purchase_line_product_tree">
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[('product_id','in',active_ids)]</field>
|
||||
<field name="domain">[('product_id.product_tmpl_id','in',active_ids)]</field>
|
||||
<field name="name">Purchases</field>
|
||||
<field name="res_model">purchase.order.line</field>
|
||||
<field name="view_id" ref="purchase_order_line_tree"/>
|
||||
|
||||
Reference in New Issue
Block a user