patient invoice form not show signature and wrong who are served
parent
00ac008130
commit
24b602e922
|
@ -394,6 +394,8 @@ class AccountInvoice(Model):
|
||||||
currency_code=inv.currency_id.code or ""
|
currency_code=inv.currency_id.code or ""
|
||||||
due_date=inv.due_date
|
due_date=inv.due_date
|
||||||
add=st.default_address_id
|
add=st.default_address_id
|
||||||
|
hdcase=inv.related_id
|
||||||
|
patient=hdcase.patient_id
|
||||||
data={
|
data={
|
||||||
'partner_name': cust_name,
|
'partner_name': cust_name,
|
||||||
'partner_address': cust_addr,
|
'partner_address': cust_addr,
|
||||||
|
@ -425,6 +427,7 @@ class AccountInvoice(Model):
|
||||||
'is_cheque': is_cheque,
|
'is_cheque': is_cheque,
|
||||||
'is_draft': is_draft,
|
'is_draft': is_draft,
|
||||||
'user_name': user.name or "",
|
'user_name': user.name or "",
|
||||||
|
'patient_name': patient.name or "",
|
||||||
'state': inv.state or "",
|
'state': inv.state or "",
|
||||||
}
|
}
|
||||||
data['pay_type']='Credit'
|
data['pay_type']='Credit'
|
||||||
|
@ -432,6 +435,7 @@ class AccountInvoice(Model):
|
||||||
data['logo']=get_file_path(st.logo)
|
data['logo']=get_file_path(st.logo)
|
||||||
if cst.signature:
|
if cst.signature:
|
||||||
data['signature']=get_file_path(cst.signature)
|
data['signature']=get_file_path(cst.signature)
|
||||||
|
data['auth_signature']=get_file_path(cst.signature)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def pay_invoice(self, ids, context={}):
|
def pay_invoice(self, ids, context={}):
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue