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

Hi , I'm using the Odoo external API (Python) in order to update customers, however there is an inconsistent error that is happening. Sometimes when updating the customers, I receive the error :

psycopg2.extensions.TransactionRollbackError: could not serialize access due to concurrent update\n\n'

I am updating customers as such :


def updateOdooRecord(name,email,zip):
        models.execute_kw(db, uid, password, 'res.partner', 'write', [[user_id], {
                            'name': name,'email':email,'zip':zip}])


Anyone knows what might be causing this error?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
5
окт. 19
9489
3
июл. 23
2190
1
нояб. 20
10417
2
июн. 18
3490
0
мая 15
3673