Browse Source
Merge pull request #141 from coopiteasy/12.O-batch-process-loans
Merge pull request #141 from coopiteasy/12.O-batch-process-loans
[IMP] emc_loan: add batch buttons for loan issue lines12.0
Robin Keunen
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 88 additions and 10 deletions
-
3easy_my_coop_loan/__manifest__.py
-
56easy_my_coop_loan/data/actions.xml
-
39easy_my_coop_loan/models/loan_issue_line.py
@ -0,0 +1,56 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2020 Coop IT Easy |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo> |
|||
<record id="batch_loan_issue_line_validate_action" model="ir.actions.server"> |
|||
<field name="name">Validate Loans</field> |
|||
<field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/> |
|||
<field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" /> |
|||
<field name="state">code</field> |
|||
<field name="code"> |
|||
records.action_validate() |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="batch_loan_issue_line_request_payment_action" model="ir.actions.server"> |
|||
<field name="name">Request Payments</field> |
|||
<field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/> |
|||
<field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" /> |
|||
<field name="state">code</field> |
|||
<field name="code"> |
|||
records.action_request_payment() |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="batch_loan_issue_line_cancel_action" model="ir.actions.server"> |
|||
<field name="name">Cancel Loans</field> |
|||
<field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/> |
|||
<field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" /> |
|||
<field name="state">code</field> |
|||
<field name="code"> |
|||
records.action_cancel() |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="batch_loan_issue_line_set_as_paid_action" model="ir.actions.server"> |
|||
<field name="name">Set as Paid</field> |
|||
<field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/> |
|||
<field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" /> |
|||
<field name="state">code</field> |
|||
<field name="code"> |
|||
records.action_paid() |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="batch_loan_issue_line_set_as_draft_action" model="ir.actions.server"> |
|||
<field name="name">Set to Draft</field> |
|||
<field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/> |
|||
<field name="binding_model_id" ref="easy_my_coop_loan.model_loan_issue_line" /> |
|||
<field name="state">code</field> |
|||
<field name="code"> |
|||
records.action_draft() |
|||
</field> |
|||
</record> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue