Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3828 Widoki

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?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
paź 19
9585
3
lip 23
2271
1
lis 20
10497
2
cze 18
3590
0
maj 15
3723