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