Browse Source

[FIX] contract_show_invoice: Correct view

pull/35/head
Pedro M. Baeza 8 years ago
parent
commit
7211b16d5d
  1. 2
      contract_show_invoice/__openerp__.py
  2. 17
      contract_show_invoice/views/contract_view.xml

2
contract_show_invoice/__openerp__.py

@ -6,7 +6,7 @@
{
'name': 'Contract Show Invoice',
'summary': 'Button in contracts to show their invoices',
'version': '9.0.1.0.0',
'version': '9.0.1.1.0',
'author': 'Domatix,'
'Tecnativa,'
'Odoo Community Association (OCA)',

17
contract_show_invoice/views/contract_view.xml

@ -8,10 +8,23 @@
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="domain">[('analytic_account_ids','=',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>
@ -28,4 +41,4 @@
</record>
</data>
</openerp>
</openerp>
Loading…
Cancel
Save