Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3707 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 10 19
9488
3
thg 7 23
2186
1
thg 11 20
10409
2
thg 6 18
3485
0
thg 5 15
3672