Use separate XML files for views
This commit is contained in:
@@ -6,6 +6,7 @@ include CHANGELOG
|
||||
include LICENSE
|
||||
include tryton.cfg
|
||||
include *.xml
|
||||
include view/*.xml
|
||||
include *.odt
|
||||
include locale/*.po
|
||||
include doc/*
|
||||
|
||||
+2
-24
@@ -7,35 +7,13 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="ir.ui.view" id="category_view_form">
|
||||
<field name="model">product.category</field>
|
||||
<field name="inherit" ref="product.category_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id='accounting']/field[@name='account_stock']"
|
||||
position="after">
|
||||
<label name="account_cogs"/>
|
||||
<field name="account_cogs"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">category_form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="template_view_form">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit" ref="product.template_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id='accounting']/field[@name='account_stock']"
|
||||
position="after">
|
||||
<label name="account_cogs"/>
|
||||
<field name="account_cogs"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">template_form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
@@ -48,7 +48,7 @@ setup(name='trytond_account_stock_anglo_saxon',
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.account_stock_anglo_saxon': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'locale/*.po', 'tests/*.rst']),
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- 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/page[@id='accounting']/field[@name='account_stock']"
|
||||
position="after">
|
||||
<label name="account_cogs"/>
|
||||
<field name="account_cogs"/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- 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/page[@id='accounting']/field[@name='account_stock']"
|
||||
position="after">
|
||||
<label name="account_cogs"/>
|
||||
<field name="account_cogs"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user