Use separate XML files for views

This commit is contained in:
Cédric Krier
2013-03-03 18:35:29 +01:00
parent 9cca021780
commit 6712fcbe37
4 changed files with 15 additions and 14 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 -13
View File
@@ -6,19 +6,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="invoice_line_view_form">
<field name="model">account.invoice.line</field>
<field name="inherit" ref="account_invoice.invoice_line_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/notebook/page/field[@name=&quot;taxes&quot;]"
position="before">
<group col="4" colspan="4" name="analytic_accounts">
<field name="analytic_accounts"/>
</group>
</xpath>
</data>
]]>
</field>
<field name="name">invoice_line_form</field>
</record>
</data>
</tryton>
+1 -1
View File
@@ -45,7 +45,7 @@ setup(name='trytond_analytic_invoice',
],
package_data={
'trytond.modules.analytic_invoice': (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/notebook/page/field[@name='taxes']"
position="before">
<group col="4" colspan="4" name="analytic_accounts">
<field name="analytic_accounts"/>
</group>
</xpath>
</data>