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
|
||||
|
||||
+2
-30
@@ -7,40 +7,12 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="model">account.invoice.line</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="priority" eval="30"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<tree string="Invoice Lines">
|
||||
<field name="invoice"/>
|
||||
<field name="invoice_type"/>
|
||||
<field name="type"/>
|
||||
<field name="product"/>
|
||||
<field name="account"/>
|
||||
<field name="description"/>
|
||||
<field name="quantity"/>
|
||||
<field name="unit"/>
|
||||
<field name="unit_price"/>
|
||||
<field name="taxes"/>
|
||||
<field name="amount"/>
|
||||
<field name="unit_digits" tree_invisible="1"/>
|
||||
<field name="currency_digits" tree_invisible="1"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">invoice_line_tree_invoice_type</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="purchase_view_form">
|
||||
<field name="model">purchase.purchase</field>
|
||||
<field name="inherit" ref="purchase.purchase_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page/field[@name="invoices"]"
|
||||
position="after">
|
||||
<field name="invoice_lines" colspan="4" view_ids="purchase_invoice_line_standalone.invoice_line_invoice_type"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
<field name="name">purchase_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
|
||||
@@ -45,7 +45,7 @@ setup(name='trytond_purchase_invoice_line_standalone',
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.purchase_invoice_line_standalone': (
|
||||
info.get('xml', []) + ['tryton.cfg', 'locale/*.po']),
|
||||
info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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. -->
|
||||
<tree string="Invoice Lines">
|
||||
<field name="invoice"/>
|
||||
<field name="invoice_type"/>
|
||||
<field name="type"/>
|
||||
<field name="product"/>
|
||||
<field name="account"/>
|
||||
<field name="description"/>
|
||||
<field name="quantity"/>
|
||||
<field name="unit"/>
|
||||
<field name="unit_price"/>
|
||||
<field name="taxes"/>
|
||||
<field name="amount"/>
|
||||
<field name="unit_digits" tree_invisible="1"/>
|
||||
<field name="currency_digits" tree_invisible="1"/>
|
||||
</tree>
|
||||
@@ -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/notebook/page/field[@name='invoices']" position="after">
|
||||
<field name="invoice_lines" colspan="4"
|
||||
view_ids="purchase_invoice_line_standalone.invoice_line_invoice_type"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user