diff --git a/netforce_clinic/models/account_invoice.py b/netforce_clinic/models/account_invoice.py index 224c0c1..db919f5 100644 --- a/netforce_clinic/models/account_invoice.py +++ b/netforce_clinic/models/account_invoice.py @@ -394,6 +394,8 @@ class AccountInvoice(Model): currency_code=inv.currency_id.code or "" due_date=inv.due_date add=st.default_address_id + hdcase=inv.related_id + patient=hdcase.patient_id data={ 'partner_name': cust_name, 'partner_address': cust_addr, @@ -425,6 +427,7 @@ class AccountInvoice(Model): 'is_cheque': is_cheque, 'is_draft': is_draft, 'user_name': user.name or "", + 'patient_name': patient.name or "", 'state': inv.state or "", } data['pay_type']='Credit' @@ -432,6 +435,7 @@ class AccountInvoice(Model): data['logo']=get_file_path(st.logo) if cst.signature: data['signature']=get_file_path(cst.signature) + data['auth_signature']=get_file_path(cst.signature) return data def pay_invoice(self, ids, context={}): diff --git a/netforce_clinic/reports/cust_invoice.odt b/netforce_clinic/reports/cust_invoice.odt index 7dbe853..cc7b50f 100644 Binary files a/netforce_clinic/reports/cust_invoice.odt and b/netforce_clinic/reports/cust_invoice.odt differ