Use separate XML files for views

This commit is contained in:
Cédric Krier
2013-03-13 16:22:37 +01:00
parent 8c9f566270
commit 552035dcbf
4 changed files with 12 additions and 13 deletions
+1
View File
@@ -6,5 +6,6 @@ include CHANGELOG
include LICENSE
include tryton.cfg
include *.xml
include view/*.xml
include *.odt
include locale/*.po
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_stock_location_sequence',
],
package_data={
'trytond.modules.stock_location_sequence': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+1 -12
View File
@@ -7,18 +7,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">stock.location</field>
<field name="type">form</field>
<field name="inherit" ref="stock.location_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/field[@name=&quot;type&quot;]"
position="after">
<label name="sequence"/>
<field name="sequence"/>
</xpath>
</data>
]]>
</field>
<field name="name">location_form</field>
</record>
</data>
</tryton>
+9
View File
@@ -0,0 +1,9 @@
<?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='type']" position="after">
<label name="sequence"/>
<field name="sequence"/>
</xpath>
</data>