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.

56 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2020 Coop IT Easy
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="batch_loan_issue_line_validate_action" model="ir.actions.server">
  8. <field name="name">Validate Loans</field>
  9. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  10. <field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" />
  11. <field name="state">code</field>
  12. <field name="code">
  13. records.action_validate()
  14. </field>
  15. </record>
  16. <record id="batch_loan_issue_line_request_payment_action" model="ir.actions.server">
  17. <field name="name">Request Payments</field>
  18. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  19. <field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" />
  20. <field name="state">code</field>
  21. <field name="code">
  22. records.action_request_payment()
  23. </field>
  24. </record>
  25. <record id="batch_loan_issue_line_cancel_action" model="ir.actions.server">
  26. <field name="name">Cancel Loans</field>
  27. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  28. <field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" />
  29. <field name="state">code</field>
  30. <field name="code">
  31. records.action_cancel()
  32. </field>
  33. </record>
  34. <record id="batch_loan_issue_line_set_as_paid_action" model="ir.actions.server">
  35. <field name="name">Set as Paid</field>
  36. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  37. <field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" />
  38. <field name="state">code</field>
  39. <field name="code">
  40. records.action_paid()
  41. </field>
  42. </record>
  43. <record id="batch_loan_issue_line_set_as_draft_action" model="ir.actions.server">
  44. <field name="name">Set to Draft</field>
  45. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  46. <field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" />
  47. <field name="state">code</field>
  48. <field name="code">
  49. records.action_draft()
  50. </field>
  51. </record>
  52. </odoo>