Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-06 23:14:31 +01:00
1 parent 456cea5e88
commit 71068b38e7
5 files changed
+28 -29

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ include CHANGELOG
include LICENSE
include tryton.cfg
include *.xml
include view/*.xml
include *.odt
include locale/*.po
include doc/*
+2 -28
View File
@@ -6,40 +6,14 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="carrier_view_form">
<field name="model">carrier</field>
<field name="inherit" ref="carrier.carrier_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/notebook/page[@id='carrier']/field[@name='carrier_cost_method']"
position="after">
<newline/>
<label name="percentage"/>
<field name="percentage"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">carrier_form</field>
</record>
<record model="ir.ui.view" id="carrier_view_form2">
<field name="model">carrier</field>
<field name="type">form</field>
<field name="inherit" ref="carrier.carrier_view_form2"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/field[@name='carrier_cost_method']"
position="after">
<newline/>
<label name="percentage"/>
<field name="percentage"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">carrier_form2</field>
</record>
</data>
</tryton>
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_carrier_percentage',
],
package_data={
'trytond.modules.carrier_percentage': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po', 'tests/*.rst']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+13
View File
@@ -0,0 +1,13 @@
<?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='carrier']/field[@name='carrier_cost_method']"
position="after">
<newline/>
<label name="percentage"/>
<field name="percentage"/>
<newline/>
</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/field[@name='carrier_cost_method']" position="after">
<newline/>
<label name="percentage"/>
<field name="percentage"/>
<newline/>
</xpath>
</data>