Use separate XML files for views
This commit is contained in:
1 parent
456cea5e88
commit
71068b38e7
5 files changed
+28
-29
No files matched your search
@@ -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
@@ -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>
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user