Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 39

concurrent update on same record

$
0
0
problem is first read the record and take the necessary data. after that update that record. that time shows the concurrent update error. anyone should any idea to solve? if have send this mail, wiseguuy@gmail.com or comment in here. Thanks code snipped is followed. class A obj = self.pool.get('customer.internal.related.data.lastid') lastid = obj.retrive_customer_id(cr, uid, '1', context=context) #some process ..................... ..................... lastid = obj.create_customer_topup_lastid(cr, uid, customer_id, flg, context=context) class B def retrive_customer_id(self, cr, uid, state, context={}): def create_customer_topup_lastid(self, cr, uid, ids, flg, context={}): read the record from Table-A. and make some process to Table-B. and then update the Table-A again...then show concurrent update. i understand current cursor point to read operation and then i make update again, concurrent update.how am i solve for that?

Viewing all articles
Browse latest Browse all 39

Trending Articles