Use separate XML files for views

This commit is contained in:
Cédric Krier committed 2013-03-13 19:41:29 +01:00
1 parent 0a8b8c5efc
commit a3e9249333
5 files changed
+21 -22

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/*
+2 -21
View File
@@ -8,17 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">production.configuration</field>
<field name="inherit"
ref="production.production_configuration_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/field[@name='production_sequence']"
position="after">
<label name="supply_period"/>
<field name="supply_period"/>
</xpath>
</data>
]]>
</field>
<field name="name">production_configuration_form</field>
</record>
<record model="ir.action.wizard" id="act_production_request_create">
@@ -30,16 +20,7 @@ this repository contains the full copyright notices and license terms. -->
id="production_create_request_start_view_form">
<field name="model">production.create_request.start</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Create Production Request" col="2">
<image name="tryton-dialog-information" xexpand="0"
xfill="0"/>
<label string="Create Production Request?" id="create"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>
]]>
</field>
<field name="name">production_create_request_start_form</field>
</record>
<record model="ir.action.act_window" id="act_production_request">
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_stock_supply_production',
],
package_data={
'trytond.modules.stock_supply_production': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+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='production_sequence']" position="after">
<label name="supply_period"/>
<field name="supply_period"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?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. -->
<form string="Create Production Request" col="2">
<image name="tryton-dialog-information" xexpand="0" xfill="0"/>
<label string="Create Production Request?" id="create"
yalign="0.0" xalign="0.0" xexpand="1"/>
</form>