multilevel O2M unlink&create at the same time fails (5.0)

Bug #613586 reported by Dukai Gábor
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Anup(SerpentCS)

Bug Description

Hi!
5.0 latest bzr.
Open a product that already has at least one product.supplierinfo record. Delete a product.supplierinfo record then create a new product.supplierinfo record. Then click on save. The client fails.

This means if the user removes a supplier information and creates a new one without first clicking on save, his client will fail giving him a hard time.

Traceback (most recent call last):
  File "bin/modules/gui/main.py", line 1334, in _sig_child_call
    res = wid.handlers[button_name]()
  File "bin/modules/gui/window/form.py", line 308, in sig_save
    id = self.screen.save_current()
  File "bin/widget/screen/screen.py", line 447, in save_current
    id = self.current_model.save(reload=True)
  File "bin/widget/model/record.py", line 141, in save
    self.update_context_with_concurrency_check_data(context)
  File "bin/widget/model/record.py", line 101, in update_context_with_concurrency_check_data
    m.update_context_with_concurrency_check_data(context)
  File "bin/widget/model/record.py", line 98, in update_context_with_concurrency_check_data
    v = self.value[field.name]
KeyError: u'pricelist_ids'

Related branches

Changed in openobject-client:
status: New → Confirmed
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Dukai,

       It is caused due to the recurring calls of the method. I have found a solution that will not raise the error. Would you please check it and notify us?

Thanks.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

hello,

The trunk version does not have this bug. You created the patch is from trunk repository.
The actual problem is in 5.0.

Thanks

Revision history for this message
Richard (John) Nopkins@Servosoft (richard-nopkins) wrote :

hi folks,
its work,thanks for the patch.
sorry,but it doesn't fix my 6.0 dev. :(( please attach if it affects.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

hello,

Sorry for the above comment , I was out traked . The patch is good and is working

Thanks

Revision history for this message
Dukai Gábor (gdukai) wrote :

Yes, it solves the problem.

Thanks

summary: - product.supplierinfo unlink&create at the same time fails (5.0)
+ multilevel O2M unlink&create at the same time fails (5.0)
Changed in openobject-client:
assignee: nobody → Anup (Open ERP) (ach-openerp)
milestone: none → 5.0.13
status: Confirmed → In Progress
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello,

It has been fixed by revision 1087 <email address hidden>

Thanks

Changed in openobject-client:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.