From 8381d47543e998e792b9514d9e6b19635832052b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 27 Jan 2015 10:18:29 +0100 Subject: [PATCH] [FIX] purchase: purchases button on product templates The purchases button on product templates open the purchase orders that have at least one of the variants of the templates Set in the context of the action button action_purchase_line_product_tree 'search_default_product_id': active_id, 'default_product_id': active_id as no point, as default_product_id expects a variant id (product.product) while active_id is a template id (product.template). opw-626521 --- 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 53c2e692ca1..8fdc99811d2 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -606,7 +606,7 @@ - {'search_default_product_id': active_id, 'default_product_id': active_id} + {} Purchases purchase.order.line