fix bug : can not pay
parent
217047f577
commit
2cc4aff3a2
|
@ -7,9 +7,10 @@ class ReportStaffLine(Model):
|
|||
def _get_all(self,ids,context={}):
|
||||
res={}
|
||||
for obj in self.browse(ids):
|
||||
hdcase=obj.hd_case_id
|
||||
res[obj.id]={
|
||||
'date': obj.hd_case_id.date,
|
||||
'patient_id': obj.hd_case_id.patient_id.id,
|
||||
'date': hdcase.date,
|
||||
'patient_id': hdcase.patient_id.id,
|
||||
}
|
||||
return res
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ class ShopPayment(Model):
|
|||
_transient=True
|
||||
|
||||
_fields={
|
||||
'shop_id': fields.Many2One("clinic.hd.case","HD Case",on_delete="cascade"),
|
||||
'shop_id': fields.Many2One("clinic.shop","Shop",on_delete="cascade"),
|
||||
'payment_id': fields.Many2One("account.payment","Payment",on_delete="cascade"),
|
||||
'account_id': fields.Many2One("account.account","Account"),
|
||||
'amount': fields.Float("Amount"),
|
||||
|
|
Loading…
Reference in New Issue