Remove _inherits

review670002
This commit is contained in:
Cédric Krier committed 2013-03-20 22:50:53 +01:00
1 parent eee5a6c9d2
commit 93a756db5f
3 files changed
+13 -10

No files matched your search

+5 -2
View File
@@ -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', {}),
})
+3 -3
View File
@@ -3,8 +3,8 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr="/form/notebook/page[@id='attributes']/field[@name='attribute_set']"
position="after">
<field name="attributes" colspan="4"/>
expr="/form/separator[@name='description']"
position="before">
<field name="attributes" colspan="6"/>
</xpath>
</data>
+5 -5
View File
@@ -2,10 +2,10 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook" position="inside">
<page string="Attributes" id="attributes">
<label name="attribute_set"/>
<field name="attribute_set"/>
</page>
<xpath expr="/form/notebook/page[@id='general']/field[@name='products']"
position="before">
<label name="attribute_set"/>
<field name="attribute_set"/>
<newline/>
</xpath>
</data>