[IMP] contract_show_invoice: more lightweight solution (#31)

[IMP] contract_show_invoice: more lightweight solution

In order to implement the button, it's not necessary to have
a heavy stored computed field. So I propose to remove it.
This commit is contained in:
Stéphane Bidoul (ACSONE)
2016-04-27 21:10:54 +02:00
committed by Pedro M. Baeza
parent 560d199091
commit 653a891a3f
8 changed files with 7 additions and 74 deletions

View File

@@ -3,11 +3,9 @@
<data>
<record id="act_analytic_invoices" model="ir.actions.act_window">
<field name="context">{'search_default_analytic_account_ids':
[active_id], 'default_analytic_account_ids': active_id}</field>
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="domain">[('analytic_account_ids','=',active_id)]</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>
@@ -28,4 +26,4 @@
</record>
</data>
</openerp>
</openerp>