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.

93 lines
3.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <odoo>
  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,activity
  17. </field>
  18. <field eval="False" name="view_id"/>
  19. <field name="domain">[('type','in',('out_invoice',
  20. 'out_refund')),('release_capital_request','=',True)]
  21. </field>
  22. <field name="context">{'default_type':'out_invoice',
  23. 'type':'out_invoice', 'journal_type': 'sale'}
  24. </field>
  25. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  26. <field name="help" type="html">
  27. <p class="o_view_nocontent_smiling_face">
  28. Create a customer invoice
  29. </p>
  30. <p>
  31. Create invoices, register payments and keep track of the
  32. discussions with your customers.
  33. </p>
  34. </field>
  35. </record>
  36. <record id="action_invoice_tree1_view1" model="ir.actions.act_window.view">
  37. <field eval="1" name="sequence"/>
  38. <field name="view_mode">tree</field>
  39. <field name="view_id" ref="account.invoice_tree"/>
  40. <field name="act_window_id" ref="action_invoice_tree_coop"/>
  41. </record>
  42. <record id="action_invoice_tree1_view2" model="ir.actions.act_window.view">
  43. <field eval="2" name="sequence"/>
  44. <field name="view_mode">form</field>
  45. <field name="view_id" ref="account.invoice_form"/>
  46. <field name="act_window_id" ref="action_invoice_tree_coop"/>
  47. </record>
  48. <record id="account.action_invoice_tree1" model="ir.actions.act_window">
  49. <field name="name">Customer Invoices</field>
  50. <field name="res_model">account.invoice</field>
  51. <field name="view_type">form</field>
  52. <field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity
  53. </field>
  54. <field eval="False" name="view_id"/>
  55. <field name="domain">[('type','in',('out_invoice',
  56. 'out_refund')),('release_capital_request','=',False)]
  57. </field>
  58. <field name="context">{'default_type':'out_invoice',
  59. 'type':'out_invoice', 'journal_type': 'sale'}
  60. </field>
  61. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  62. <field name="help" type="html">
  63. <p class="o_view_nocontent_smiling_face">
  64. Create a customer invoice
  65. </p>
  66. <p>
  67. Create invoices, register payments and keep track of the
  68. discussions with your customers.
  69. </p>
  70. </field>
  71. </record>
  72. <record id="account.action_invoice_refund_out_tree"
  73. model="ir.actions.act_window">
  74. <field name="name">Invoices</field>
  75. <field name="res_model">account.invoice</field>
  76. <field name="view_type">form</field>
  77. <field name="view_mode">tree,form,kanban,calendar,graph,pivot</field>
  78. <field name="view_id" ref="account.invoice_tree"/>
  79. <field name="domain">[('type','in', ['out_invoice', 'out_refund']),
  80. ('state', 'not in', ['draft',
  81. 'cancel']),('release_capital_request','=',False)]
  82. </field>
  83. <field name="context">{'default_type':'out_invoice',
  84. 'type':'out_invoice', 'journal_type': 'sale'}
  85. </field>
  86. <field name="search_view_id" ref="account.view_account_invoice_filter"/>
  87. </record>
  88. </odoo>