|
@@ -14,7 +14,20 @@
|
|
|
</record>
|
|
|
<menuitem id="menu_receive_invoice"
|
|
|
action="action_receive_invoice" parent="account.menu_finance_receivables"
|
|
|
- sequence="9"/>
|
|
|
+ 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="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">
|
|
@@ -27,8 +40,14 @@
|
|
|
<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="9"/>
|
|
|
+ sequence="10"/>
|
|
|
+
|
|
|
+
|
|
|
</data>
|
|
|
</openerp>
|