12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- Cuentas a cobrar -->
- <record id="action_receive_invoice" model="ir.actions.act_window">
- <field name="name">Cuentas a cobrar</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">account.invoice</field>
- <field name="view_type">form</field>
- <field name="view_id" ref="account.invoice_tree"/>
- <field name="view_mode">tree,form,calendar,graph</field>
- <field name="domain">[('state', '=', 'open'),('type', '=', 'out_invoice')]</field>
- <field name="search_view_id" ref="account.view_account_invoice_filter"/>
- </record>
- <menuitem id="menu_receive_invoice"
- action="action_receive_invoice" parent="account.menu_finance_receivables"
- sequence="10"/>
- <!-- Proveedor -->
- <!-- Registrar gastos -->
- <record id="action_expenses_invoice" model="ir.actions.act_window">
- <field name="name">Registrar Gastos</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">account.invoice</field>
- <field name="view_type">form</field>
- <field name="view_id" ref="account.invoice_tree"/>
- <field name="view_mode">tree,form,calendar,graph</field>
- <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
- <field name="domain">['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice')]</field>
- <field name="search_view_id" ref="account.view_account_invoice_filter"/>
- </record>
- <!-- Cuentas a pagar -->
- <record id="action_pay_invoice" model="ir.actions.act_window">
- <field name="name">Cuentas a pagar</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">account.invoice</field>
- <field name="view_type">form</field>
- <field name="view_id" ref="account.invoice_tree"/>
- <field name="view_mode">tree,form,calendar,graph</field>
- <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
- <field name="domain">[('state', '=', 'open'),('type', '=', 'in_invoice')]</field>
- <field name="search_view_id" ref="account.view_account_invoice_filter"/>
- </record>
- <menuitem id="menu_expenses_invoice"
- action="action_expenses_invoice" parent="account.menu_finance_payables"
- sequence="10"/>
- <menuitem id="menu_pay_invoice"
- action="action_pay_invoice" parent="account.menu_finance_payables"
- sequence="10"/>
- </data>
- </openerp>
|