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
|
||||
|
||||
+1
-13
@@ -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="taxes"]"
|
||||
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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user