Browse Source

FIX invoice form view (#34)

[FIX] contract_show_invoice: invoice form view
pull/38/head
Daniel Rodríguez Lijo 8 years ago
committed by Pedro M. Baeza
parent
commit
4d01439431
  1. 1
      contract_show_invoice/README.rst
  2. 2
      contract_show_invoice/__openerp__.py
  3. 15
      contract_show_invoice/views/contract_view.xml

1
contract_show_invoice/README.rst

@ -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>

2
contract_show_invoice/__openerp__.py

@ -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'],

15
contract_show_invoice/views/contract_view.xml

@ -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>

Loading…
Cancel
Save