コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3728 ビュー

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?

アバター
破棄
関連投稿 返信 ビュー 活動
5
10月 19
9503
3
7月 23
2208
1
11月 20
10430
2
6月 18
3496
0
5月 15
3683