I have this model with unique_id field as below:
class ProjectTask(ModelSQL, ModelView):
"Activity"
__name__ = "afx.project.task"
_rec_name = 'activity'
unique_id = fields.Char("Uuid")
I set the value using random string, so the value of unique_id = “709f653bbe36ee26502b1a9f9e08828b54540f75794f91b3b8214ea65aadfdab” successfully during creation.
Then I use it in this code block:
existing_project_task = ProjectTask.search([
('unique_id', '=', cls.unique_id),
])
And always throws error:
An error occurred while processing record 5: 'bool' object is not callable
Anybody knows?
Regards
Bromo