From defbe247e855e6fc61c7cc8560d73e5d3e41626d Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 13 Feb 2017 09:46:38 +0100 Subject: [PATCH] [FIX] product: method open_product_template duplicated Introduced in 3befe66f432 Closes #15463 --- addons/product/product.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/product/product.py b/addons/product/product.py index c59054f323b..96317ad1aca 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -1179,15 +1179,6 @@ class product_product(osv.osv): args.append((('categ_id', 'child_of', context['search_default_categ_id']))) return super(product_product, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count) - def open_product_template(self, cr, uid, ids, context=None): - """ Utility method used to add an "Open Template" button in product views """ - product = self.browse(cr, uid, ids[0], context=context) - return {'type': 'ir.actions.act_window', - 'res_model': 'product.template', - 'view_mode': 'form', - 'res_id': product.product_tmpl_id.id, - 'target': 'new'} - def create(self, cr, uid, vals, context=None): ctx = dict(context or {}, create_product_product=True) product_id = super(product_product, self).create(cr, uid, vals, context=ctx)