Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1381 Представления

HI all !

I am new  member odooand have an error in odoo version 16"

I wrote a source code that allows updating all project. task with 'description' fields, but when debugging I encountered this error exeption : "ValidationError("The document was already saved from someone with a different history for model 'project.task', field 'description' with id 223.")"


Only the description field is corrupted, other fields are still allowed to be updated

This is mycode: 

try:

task.update({
'assign_task_id': self.id,
'name': self.name,
'display_name':self.display_name,
'date_deadline':self.date_deadline or False,
'tag_ids':self.tag_ids or False,
'date_start':self.date_start or False,
'date_end': self.date_end or False,
'schedule_mode': self.schedule_mode or False,
'date_finished': self.date_finished,
'description': self.description
})
except Exception as e:
print("exception on update task")

--------------> 

Exception throw : ValidationError("The document was already saved from someone with a different history for model 'project.task', field 'description' with id 223.")

please help me why ?



Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мая 25
2650
Validation Error Решено
4
июл. 25
4758
2
июл. 24
1741
2
июл. 23
2881
0
дек. 22
2312