Browse Source

[FIX] contract_show_invoice: wrong value for account (#99)

pull/116/merge
Sergio Zanchetta 7 years ago
committed by Pedro M. Baeza
parent
commit
1a5770c940
  1. 3
      contract_show_invoice/__manifest__.py
  2. 2
      contract_show_invoice/views/contract_view.xml

3
contract_show_invoice/__manifest__.py

@ -6,7 +6,8 @@
{ {
'name': 'Contract Show Invoice', 'name': 'Contract Show Invoice',
'summary': 'Button in contracts to show their invoices', 'summary': 'Button in contracts to show their invoices',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'license': 'AGPL-3',
'author': 'Domatix,' 'author': 'Domatix,'
'Tecnativa,' 'Tecnativa,'
'Odoo Community Association (OCA)', 'Odoo Community Association (OCA)',

2
contract_show_invoice/views/contract_view.xml

@ -3,7 +3,7 @@
<record id="act_analytic_invoices" model="ir.actions.act_window"> <record id="act_analytic_invoices" model="ir.actions.act_window">
<field name="context">{'search_default_analytic_account_ids': <field name="context">{'search_default_analytic_account_ids':
[active_id], 'default_analytic_account_ids': active_id}</field>
[active_id], 'default_analytic_account_ids': [active_id]}</field>
<field name="name">Invoices</field> <field name="name">Invoices</field>
<field name="res_model">account.invoice</field> <field name="res_model">account.invoice</field>
<field name="domain">[('analytic_account_ids','=',active_id)]</field> <field name="domain">[('analytic_account_ids','=',active_id)]</field>

Loading…
Cancel
Save