Use separate XML files for views

This commit is contained in:
Cédric Krier
2013-03-03 15:23:25 +01:00
parent dd7021e3b8
commit 163f4a3173
5 changed files with 26 additions and 25 deletions
+1
View File
@@ -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
View File
@@ -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>
+1 -1
View File
@@ -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',
+11
View File
@@ -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>
+11
View File
@@ -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>