Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-11 18:37:02 +01:00
1 parent 917950f084
commit 8103eda4d5
7 files changed
+43 -45

No files matched your search

+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 -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_product']"
position="after">
<newline/>
<label name="carrier_cost_allocation_method"/>
<field name="carrier_cost_allocation_method"/>
<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_product']"
position="after">
<newline/>
<label name="carrier_cost_allocation_method"/>
<field name="carrier_cost_allocation_method"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">carrier_form2</field>
</record>
</data>
</tryton>
+1 -1
View File
@@ -55,7 +55,7 @@ setup(name='trytond_purchase_shipment_cost',
],
package_data={
'trytond.modules.purchase_shipment_cost': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po', 'tests/*.rst']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+1 -16
View File
@@ -7,22 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">stock.shipment.in</field>
<field name="type">form</field>
<field name="inherit" ref="stock.shipment_in_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook"
position="after">
<label name="carrier"/>
<field name="carrier"/>
<label name="cost"/>
<group col="2" id="cost">
<field name="cost"/>
<field name="cost_currency"/>
</group>
</xpath>
</data>
]]>
</field>
<field name="name">shipment_in_form</field>
</record>
</data>
</tryton>
+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_product']"
position="after">
<newline/>
<label name="carrier_cost_allocation_method"/>
<field name="carrier_cost_allocation_method"/>
<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_product']" position="after">
<newline/>
<label name="carrier_cost_allocation_method"/>
<field name="carrier_cost_allocation_method"/>
<newline/>
</xpath>
</data>
+14
View File
@@ -0,0 +1,14 @@
<?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" position="after">
<label name="carrier"/>
<field name="carrier"/>
<label name="cost"/>
<group col="2" id="cost">
<field name="cost"/>
<field name="cost_currency"/>
</group>
</xpath>
</data>