Skip to Content
Menu
This question has been flagged

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?

Avatar
Discard
Related Posts Replies Views Activity
5
Oct 19
8187
3
Jul 23
1053
1
Nov 20
9288
2
Jun 18
2727
0
May 15
2974