From 7f8cd014310190326e349ad894dc15b82c01ee29 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 28 May 2015 15:48:43 +0200 Subject: [PATCH] [FIX] product: Product field "product.product" model inherits from "product.template" model then all the float fields in "product.product" include those from "product.template". A list is used to conserve the order of the fields. Fixes #2067 opw:639766 --- addons/product/pricelist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index f0cc3e77fa7..69df14f0cb1 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -42,7 +42,8 @@ class price_type(osv.osv): ids = mf.search(cr, uid, [('model','in', (('product.product'),('product.template'))), ('ttype','=','float')], context=context) res = [] for field in mf.browse(cr, uid, ids, context=context): - res.append((field.name, field.field_description)) + if not (field.name, field.field_description) in res: + res.append((field.name, field.field_description)) return res def _get_field_currency(self, cr, uid, fname, ctx):