Use separate XML files for views
This commit is contained in:
1 parent
7fb2b9dcf8
commit
57654501fc
6 files changed
+24
-26
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. -->
|
||||
<record model="ir.ui.view" id="party_view_form">
|
||||
<field name="model">party.party</field>
|
||||
<field name="inherit" ref="party.party_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="price_list"]"
|
||||
position="inside">
|
||||
<label name="sale_price_list"/>
|
||||
<field name="sale_price_list"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">party_form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
@@ -7,18 +7,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="ir.ui.view" id="sale_view_form">
|
||||
<field name="model">sale.sale</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="price_list"/>
|
||||
<field name="price_list"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">sale_form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
@@ -45,7 +45,7 @@ setup(name='trytond_sale_price_list',
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.sale_price_list': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'locale/*.po']),
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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='price_list']" position="inside">
|
||||
<label name="sale_price_list"/>
|
||||
<field name="sale_price_list"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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="price_list"/>
|
||||
<field name="price_list"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in new issue
Block a user