From 421ec99363edaace7f9a1e5611df7a3323271f36 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 8 Mar 2016 18:07:50 +0700 Subject: [PATCH] add action to create invoice payment --- .../actions/create_invoice_payment.xml | 6 + .../layouts/clinic_hdcase_payment_form.xml | 16 +++ .../layouts/clinic_import_payment_form.xml | 5 - .../layouts/clinic_payment_form.xml | 21 +-- .../layouts/create_invoice_payment_form.xml | 18 +++ netforce_clinic/layouts/payment_list.xml | 14 ++ netforce_clinic/models/__init__.py | 1 + netforce_clinic/models/account_invoice.py | 1 + netforce_clinic/models/account_payment.py | 2 +- .../models/create_invoice_payment.py | 131 ++++++++++++++++++ netforce_clinic/models/partner.py | 2 +- 11 files changed, 194 insertions(+), 23 deletions(-) create mode 100644 netforce_clinic/actions/create_invoice_payment.xml create mode 100644 netforce_clinic/layouts/clinic_hdcase_payment_form.xml delete mode 100644 netforce_clinic/layouts/clinic_import_payment_form.xml create mode 100644 netforce_clinic/layouts/create_invoice_payment_form.xml create mode 100644 netforce_clinic/layouts/payment_list.xml create mode 100644 netforce_clinic/models/create_invoice_payment.py diff --git a/netforce_clinic/actions/create_invoice_payment.xml b/netforce_clinic/actions/create_invoice_payment.xml new file mode 100644 index 0000000..fdc68e6 --- /dev/null +++ b/netforce_clinic/actions/create_invoice_payment.xml @@ -0,0 +1,6 @@ + + form_view + create.invoice.payment + create_invoice_payment_form + account_menu + diff --git a/netforce_clinic/layouts/clinic_hdcase_payment_form.xml b/netforce_clinic/layouts/clinic_hdcase_payment_form.xml new file mode 100644 index 0000000..398842b --- /dev/null +++ b/netforce_clinic/layouts/clinic_hdcase_payment_form.xml @@ -0,0 +1,16 @@ +
+ + + + + + + + + + +