You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
4.6 KiB

  1. <openerp>
  2. <record id="invoice_form" model="ir.ui.view">
  3. <field name="name">account.invoice.form</field>
  4. <field name="model">account.invoice</field>
  5. <field name="inherit_id" ref="account.invoice_form"/>
  6. <field name="arch" type="xml">
  7. <field name="move_id" position="after">
  8. <field name="subscription_request"/>
  9. </field>
  10. </field>
  11. </record>
  12. <record id="action_invoice_tree_coop" model="ir.actions.act_window">
  13. <field name="name">Cooperator Invoices</field>
  14. <field name="res_model">account.invoice</field>
  15. <field name="view_type">form</field>
  16. <field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
  17. <field eval="False" name="view_id"/>
  18. <field name="domain">[('type','in',('out_invoice', 'out_refund')),('release_capital_request','=',True)]</field>
  19. <field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field>
  20. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  21. <field name="help" type="html">
  22. <p class="oe_view_nocontent_create">
  23. Click to create a cooperator invoice.
  24. </p><p>
  25. OpenERP's electronic invoicing allows to ease and fasten the
  26. collection of cooperator payments. The cooperator customer receives the
  27. invoice by email and he can pay online and/or import it
  28. in his own system.
  29. </p><p>
  30. The discussions with the cooperator are automatically displayed at
  31. the bottom of each invoice.
  32. </p>
  33. </field>
  34. </record>
  35. <record id="action_invoice_tree1_view1" model="ir.actions.act_window.view">
  36. <field eval="1" name="sequence"/>
  37. <field name="view_mode">tree</field>
  38. <field name="act_window_id" ref="action_invoice_tree_coop"/>
  39. </record>
  40. <record id="action_invoice_tree1_view2" model="ir.actions.act_window.view">
  41. <field eval="2" name="sequence"/>
  42. <field name="view_mode">form</field>
  43. <field name="view_id" ref="account.invoice_form"/>
  44. <field name="act_window_id" ref="action_invoice_tree_coop"/>
  45. </record>
  46. <menuitem action="action_invoice_tree_coop" id="menu_action_invoice_tree_coop" parent="menu_easy_my_coop_main_coop" groups="easy_my_coop.group_energiris_user"/>
  47. <record id="account.action_invoice_tree1" model="ir.actions.act_window">
  48. <field name="name">Customer Invoices</field>
  49. <field name="res_model">account.invoice</field>
  50. <field name="view_type">form</field>
  51. <field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
  52. <field eval="False" name="view_id"/>
  53. <field name="domain">[('type','in',('out_invoice', 'out_refund')),('release_capital_request','=',False)]</field>
  54. <field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field>
  55. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  56. <field name="help" type="html">
  57. <p class="oe_view_nocontent_create">
  58. Click to create a customer invoice.
  59. </p><p>
  60. Odoo's electronic invoicing allows to ease and fasten the
  61. collection of customer payments. Your customer receives the
  62. invoice by email and he can pay online and/or import it
  63. in his own system.
  64. </p><p>
  65. The discussions with your customer are automatically displayed at
  66. the bottom of each invoice.
  67. </p>
  68. </field>
  69. </record>
  70. <record id="account.action_invoice_refund_out_tree" model="ir.actions.act_window">
  71. <field name="name">Invoices</field>
  72. <field name="res_model">account.invoice</field>
  73. <field name="view_type">form</field>
  74. <field name="view_mode">tree,form,kanban,calendar,graph,pivot</field>
  75. <field name="view_id" ref="account.invoice_tree"/>
  76. <field name="domain">[('type','in', ['out_invoice', 'out_refund']), ('state', 'not in', ['draft', 'cancel']),('release_capital_request','=',False)]</field>
  77. <field name="context">{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}</field>
  78. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  79. </record>
  80. </openerp>