From 93a756db5f324d35247c7ede2240f429da37bfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Mar 2013 22:50:53 +0100 Subject: [PATCH] Remove _inherits review670002 --- product.py | 7 +++++-- view/product_form.xml | 6 +++--- view/template_form.xml | 10 +++++----- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/product.py b/product.py index 7c65569077..460266653d 100644 --- a/product.py +++ b/product.py @@ -42,6 +42,9 @@ class Product: __name__ = 'product.product' attributes = fields.Dict('product.attribute', 'Attributes', domain=[ - ('sets', '=', Eval('attribute_set', -1)), + ('sets', '=', + Eval('_parent_template', {}).get('attribute_set', -1)), ], - depends=['attribute_set']) + states={ + 'readonly': ~Eval('_parent_template', {}), + }) diff --git a/view/product_form.xml b/view/product_form.xml index dcda11a81c..c2606c7b36 100644 --- a/view/product_form.xml +++ b/view/product_form.xml @@ -3,8 +3,8 @@ this repository contains the full copyright notices and license terms. --> - + expr="/form/separator[@name='description']" + position="before"> + diff --git a/view/template_form.xml b/view/template_form.xml index c519c28c20..ea461b4dec 100644 --- a/view/template_form.xml +++ b/view/template_form.xml @@ -2,10 +2,10 @@ - - - + +