Use separate XML files for views
This commit is contained in:
1 parent
392fe626c7
commit
c2d2874eff
8 files changed
+55
-56
No files matched your search
@@ -6,6 +6,7 @@ include CHANGELOG
|
||||
include LICENSE
|
||||
include tryton.cfg
|
||||
include *.xml
|
||||
include view/*.xml
|
||||
include *.odt
|
||||
include locale/*.po
|
||||
include doc/*
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user