Remove _inherits
review670002
This commit is contained in:
1 parent
eee5a6c9d2
commit
93a756db5f
3 files changed
+13
-10
No files matched your search
+5
-2
@@ -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,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>
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user