Skip to Content
Menu
This question has been flagged

Hello Dears,


I Install odoo oemedical modules then when i want to create invoice from lab,Appointment,Prescriptions i have a error:


addons/oemedical_invoice/models/wizard_create_lab_invoice.py", line 71, in create_lab_invoice

if test.patient_id.name.id: AttributeError: 'unicode' object has no attribute 'id'


If Anyone has a solution Please Help

Avatar
Discard
Best Answer

hello,

this line do not look good test.patient_id.name.id It should be test.patient.name or test.patient.id. As name is usually used for character field and will not have id. Please check which type of field is name( in whichever model test.patient_id refers)

Is this error because of extra modifications you made or module's default behavior. If this is default behavior you may try to contact the author about it.

Avatar
Discard
Related Posts Replies Views Activity
2
Feb 23
3679
0
Nov 23
368
0
Apr 23
882
0
Jan 23
805
1
Apr 20
2419