mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
- Use the 'data' key instead of 'update_xml' - Use the new api for account.invoice as the base model use it - The module now depends on 'sale_stock' and 'stock_account' - Avoid to write 2 times on the invoice by using the method that prepares the values before the write - Empty the transaction id of a sale order on copy - Some cleaning - Indent xml with 2 spaces - Cleaning of the views - Add the transaction ref field to the form view of the move lines
27 lines
890 B
XML
27 lines
890 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record model="ir.ui.view" id="invoice_view_custom">
|
|
<field name="name">customer.invoice.transaction.inherit</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="origin" position="after">
|
|
<field name="transaction_id"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="invoice_tree_custom">
|
|
<field name="name">account.invoice.tree.inherit</field>
|
|
<field name="model">account.invoice</field>
|
|
<field name="inherit_id" ref="account.invoice_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="origin" position="after">
|
|
<field name="transaction_id"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|