Use separate XML files for views

This commit is contained in:
Cédric Krier
2013-03-09 15:24:45 +01:00
parent dab76830cc
commit 75c2aa0238
8 changed files with 44 additions and 51 deletions
+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 -26
View File
@@ -6,36 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="address_view_tree">
<field name="model">party.address</field>
<field name="inherit" ref="party.address_view_tree"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/tree/field[@name=&quot;subdivision&quot;]"
position="after">
<field name="siret"/>
</xpath>
</data>
]]>
</field>
<field name="name">address_tree</field>
</record>
<record model="ir.ui.view" id="address_view_form">
<field name="model">party.address</field>
<field name="inherit" ref="party.address_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/field[@name=&quot;subdivision&quot;]"
position="after">
<newline/>
<label name="siret"/>
<field name="siret"/>
<label name="siret_nic"/>
<field name="siret_nic"/>
</xpath>
</data>
]]>
</field>
<field name="name">address_form</field>
</record>
</data>
</tryton>
+2 -24
View File
@@ -6,34 +6,12 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="party_view_tree">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_tree"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/tree/field[@name=&quot;vat_code&quot;]"
position="after">
<field name="siren"/>
</xpath>
</data>
]]>
</field>
<field name="name">party_tree</field>
</record>
<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/group[@id=&quot;checkboxes&quot;]"
position="after">
<label name="siren"/>
<field name="siren"/>
<newline/>
</xpath>
</data>
]]>
</field>
<field name="name">party_form</field>
</record>
</data>
</tryton>
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_party_siret',
],
package_data={
'trytond.modules.party_siret': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po']),
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
+12
View File
@@ -0,0 +1,12 @@
<?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='subdivision']" position="after">
<newline/>
<label name="siret"/>
<field name="siret"/>
<label name="siret_nic"/>
<field name="siret_nic"/>
</xpath>
</data>
+8
View File
@@ -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. -->
<data>
<xpath expr="/tree/field[@name='subdivision']" position="after">
<field name="siret"/>
</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/group[@id='checkboxes']" position="after">
<label name="siren"/>
<field name="siren"/>
<newline/>
</xpath>
</data>
+8
View File
@@ -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. -->
<data>
<xpath expr="/tree/field[@name='vat_code']" position="after">
<field name="siren"/>
</xpath>
</data>