Hola, tengo un modulo que realiza un lote de ordenes de venta y que funciona bien para un numero chico de ordenes a realizar (250 aprox).
El problema surge cuando el proceso debe realizar un lote mayor de ordenes (alrededor de 1500).
En la mitad de la ejecucion el proceso se interrumpe y genera el siguiente error:
File "/usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_thread.py", line 381, in create thread_id = super(mail_thread, self).create(cr, uid, values, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 336, in old_api result = method(recs, *args, **kwargs) File "/mnt/extra-addons/odoo-addons/connector/producer.py", line 48, in create record_id = create_original(self, vals) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4082, in create record = self.browse(self._create(old_vals)) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 239, in wrapper return new_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 463, in new_api result = method(self._model, cr, uid, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4220, in _create tuple([u[2] for u in updates if len(u) > 2]) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 158, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 234, in execute res = self._obj.execute(query, params) TransactionRollbackError: could not serialize access due to concurrent update CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
Alguien sabe a que se puede deber??
Gracias