From 2d5e1d3af9eb4650c8f11b119dd484fb64af0abf Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 19 Feb 2016 17:21:17 +0100 Subject: [PATCH] [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 --- addons/purchase/purchase_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 9008a08af00..2a773b5579b 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -536,7 +536,7 @@ {} - [('product_id','in',active_ids)] + [('product_id.product_tmpl_id','in',active_ids)] Purchases purchase.order.line