Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-13 11:26:12 +01:00
1 parent 7fb2b9dcf8
commit 57654501fc
6 files changed
+24 -26

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/*
+1 -13
View File
@@ -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=&quot;price_list&quot;]"
position="inside">
<label name="sale_price_list"/>
<field name="sale_price_list"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">party_form</field>
</record>
</data>
+1 -12
View File
@@ -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=&quot;sale&quot;]/field[@name=&quot;currency&quot;]"
position="after">
<label name="price_list"/>
<field name="price_list"/>
</xpath>
</data>
]]>
</field>
<field name="name">sale_form</field>
</record>
</data>
+1 -1
View File
@@ -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',
+10
View File
@@ -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>
+10
View File
@@ -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>