Use separate XML files for views
This commit is contained in:
@@ -6,5 +6,6 @@ include CHANGELOG
|
||||
include LICENSE
|
||||
include tryton.cfg
|
||||
include *.xml
|
||||
include view/*.xml
|
||||
include *.odt
|
||||
include locale/*.po
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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="type"]"
|
||||
position="after">
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">location_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user