mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
FIX invoice form view (#34)
[FIX] contract_show_invoice: invoice form view
This commit is contained in:
committed by
Pedro M. Baeza
parent
4d4b824297
commit
4d01439431
@@ -39,6 +39,7 @@ Credits
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Daniel Rodríguez <drl.9319@gmail.com>
|
||||
* Ángel Moya <angel.moya@domatix.com>
|
||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
{
|
||||
'name': 'Contract Show Invoice',
|
||||
'summary': 'Button in contracts to show their invoices',
|
||||
'version': '8.0.2.0.0',
|
||||
'version': '8.0.2.1.0',
|
||||
'author': 'Domatix,Odoo Community Association (OCA)',
|
||||
'website': 'http://www.domatix.com',
|
||||
'depends': ['account_analytic_analysis'],
|
||||
|
||||
@@ -6,10 +6,23 @@
|
||||
<field name="name">Invoices</field>
|
||||
<field name="res_model">account.invoice</field>
|
||||
<field name="domain">[('invoice_line.account_analytic_id','=',active_id)]</field>
|
||||
<field name="view_id" ref="account.invoice_tree" />
|
||||
<field name="search_view_id" ref="account.view_account_invoice_filter" />
|
||||
</record>
|
||||
|
||||
<record id="action_contract_show_invoice_tree" model="ir.actions.act_window.view">
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="account.invoice_tree"/>
|
||||
<field name="act_window_id" ref="act_analytic_invoices"/>
|
||||
</record>
|
||||
|
||||
<record id="action_contract_show_invoice_form" model="ir.actions.act_window.view">
|
||||
<field name="sequence" eval="2"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="account.invoice_form"/>
|
||||
<field name="act_window_id" ref="act_analytic_invoices"/>
|
||||
</record>
|
||||
|
||||
<record id="account_analytic_account_button_invoice" model="ir.ui.view">
|
||||
<field name="name">account.analytic.account.button.invoice
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user