From 91d9625d9b32aae40bdc9932916ca28d8d5c34a8 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 9 Nov 2015 14:56:50 +0100 Subject: [PATCH] [FIX] website_sale: rename conflicted color field 'color' is now a kind of magic field for the many2many tags widget, it should not be used for something else. This was half-fixed in 9.0 with f847701 and this commit solves it properly. opw-653124 --- addons/website_sale/models/product.py | 4 +++- addons/website_sale/views/templates.xml | 4 ++-- addons/website_sale/views/views.xml | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index da1bcb93f38..14842501bc4 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -188,5 +188,7 @@ class product_attribute(osv.Model): class product_attribute_value(osv.Model): _inherit = "product.attribute.value" _columns = { - 'color': fields.char("HTML Color Index", help="Here you can set a specific HTML color index (e.g. #ff0000) to display the color on the website if the attibute type is 'Color'."), + 'html_color': fields.char("HTML Color Index", oldname='color', help="Here you can set a " + "specific HTML color index (e.g. #ff0000) to display the color on the website if the " + "attibute type is 'Color'."), } diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 68e2910fc81..39f324bc1a9 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -293,7 +293,7 @@ -