Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-13 11:58:37 +01:00
1 parent 392fe626c7
commit c2d2874eff
8 files changed
+55 -56

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/*
+3 -39
View File
@@ -7,19 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">sale.configuration</field>
<field name="type">form</field>
<field name="inherit" ref="sale.sale_configuration_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/field[@name='sale_shipment_method']"
position="after">
<label name="sale_carrier"/>
<field name="sale_carrier"/>
<label name="sale_shipment_cost_method"/>
<field name="sale_shipment_cost_method"/>
</xpath>
</data>
]]>
</field>
<field name="name">configuration_form</field>
</record>
<record model="ir.property" id="property_sale_shipment_cost_method">
@@ -32,38 +20,14 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">sale.sale</field>
<field name="type">form</field>
<field name="inherit" ref="sale.sale_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook/page[@id='sale']/field[@name='currency']"
position="after">
<label name="carrier"/>
<field name="carrier"/>
</xpath>
<xpath
expr="/form/notebook/page[@id='other']/field[@name='shipment_method']"
position="after">
<label name="shipment_cost_method"/>
<field name="shipment_cost_method"/>
</xpath>
</data>
]]>
</field>
<field name="name">sale_form</field>
</record>
<record model="ir.ui.view" id="sale_line_view_tree_sequence">
<field name="model">sale.line</field>
<field name="type">tree</field>
<field name="inherit" ref="sale.sale_line_view_tree_sequence"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/tree" position="inside">
<field name="shipment_cost" tree_invisible="1"/>
</xpath>
</data>
]]>
</field>
<field name="name">sale_line_tree_sequence</field>
</record>
</data>
+1 -1
View File
@@ -52,7 +52,7 @@ setup(name='trytond_sale_shipment_cost',
],
package_data={
'trytond.modules.sale_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.out</field>
<field name="type">form</field>
<field name="inherit" ref="stock.shipment_out_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_out_form</field>
</record>
</data>
</tryton>
+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='sale_shipment_method']" position="after">
<label name="sale_carrier"/>
<field name="sale_carrier"/>
<label name="sale_shipment_cost_method"/>
<field name="sale_shipment_cost_method"/>
</xpath>
</data>
+16
View File
@@ -0,0 +1,16 @@
<?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='sale']/field[@name='currency']"
position="after">
<label name="carrier"/>
<field name="carrier"/>
</xpath>
<xpath
expr="/form/notebook/page[@id='other']/field[@name='shipment_method']"
position="after">
<label name="shipment_cost_method"/>
<field name="shipment_cost_method"/>
</xpath>
</data>
+8
View File
@@ -0,0 +1,8 @@
<?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="/tree" position="inside">
<field name="shipment_cost" tree_invisible="1"/>
</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>