invoice_pay_and_receive.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Cuentas a cobrar -->
  5. <record id="action_receive_invoice" model="ir.actions.act_window">
  6. <field name="name">Cuentas a cobrar</field>
  7. <field name="type">ir.actions.act_window</field>
  8. <field name="res_model">account.invoice</field>
  9. <field name="view_type">form</field>
  10. <field name="view_id" ref="account.invoice_tree"/>
  11. <field name="view_mode">tree,form,calendar,graph</field>
  12. <field name="domain">[('state', '=', 'open'),('type', '=', 'out_invoice')]</field>
  13. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  14. </record>
  15. <menuitem id="menu_receive_invoice"
  16. action="action_receive_invoice" parent="account.menu_finance_receivables"
  17. sequence="10"/>
  18. <!-- Proveedor -->
  19. <!-- Registrar gastos -->
  20. <record id="action_expenses_invoice" model="ir.actions.act_window">
  21. <field name="name">Registrar Gastos</field>
  22. <field name="type">ir.actions.act_window</field>
  23. <field name="res_model">account.invoice</field>
  24. <field name="view_type">form</field>
  25. <field name="view_id" ref="account.invoice_tree"/>
  26. <field name="view_mode">tree,form,calendar,graph</field>
  27. <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
  28. <field name="domain">['|',('origin', 'ilike', 'AA'),('origin', '=', False),('type', '=', 'in_invoice')]</field>
  29. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  30. </record>
  31. <!-- Cuentas a pagar -->
  32. <record id="action_pay_invoice" model="ir.actions.act_window">
  33. <field name="name">Cuentas a pagar</field>
  34. <field name="type">ir.actions.act_window</field>
  35. <field name="res_model">account.invoice</field>
  36. <field name="view_type">form</field>
  37. <field name="view_id" ref="account.invoice_tree"/>
  38. <field name="view_mode">tree,form,calendar,graph</field>
  39. <field name="context">{'default_type': 'in_invoice', 'type': 'in_invoice', 'journal_type': 'purchase'}</field>
  40. <field name="domain">[('state', '=', 'open'),('type', '=', 'in_invoice')]</field>
  41. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  42. </record>
  43. <menuitem id="menu_expenses_invoice"
  44. action="action_expenses_invoice" parent="account.menu_finance_payables"
  45. sequence="10"/>
  46. <menuitem id="menu_pay_invoice"
  47. action="action_pay_invoice" parent="account.menu_finance_payables"
  48. sequence="10"/>
  49. </data>
  50. </openerp>