mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
committed by
Pedro M. Baeza
parent
560d199091
commit
653a891a3f
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user