gtk client crashes when click sort in one2many

Bug #865074 reported by senthilnathang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

GTK Client Crashes while click column field (sort) in one2many

If first time it is made then it goes for

You have unsaved record(s) !

Please Save them before sorting !

then it crashes with next sorts..................

In web it works fine.....................

senthilnathang (bornspy)
description: updated
description: updated
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

That is not a crash rather a Warning ! It tells you to save your line before sorting !

and you are telling that it crashes with next sorts...however I dont see that ...until and unless you sort on an unsaved record you will have this warning !

if you have a crash as you say then can you provide us more details ..like traceback, version of Openerp you are using , Platform. etc...

Thanks

Changed in openobject-client:
status: New → Incomplete
Revision history for this message
senthilnathang (bornspy) wrote :

I m sorry, i didn't explain the scenario correctly

After clicking sort without closing it if you again click sort then gtk-client stops responding

It must not allow to click the sort again without closing raise except window, isn't it ?

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

Hello Senthilnathang,

I dont think that's possible because that Message window is a model dialog box that is, one which freezes the rest of the application from user input so how can you click second time without responding to the first warning pop up.

Revision history for this message
senthilnathang (bornspy) wrote :

I think may be because of this

 /usr/share/pyshared/openerp-client/widget/view/tree_gtk/parser.py
if unsaved_model:
  res = common.message(_('You have unsaved record(s) ! \n\nPlease Save them before sorting !'))
 return res

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

can you give us the complete traceback that you see

Revision history for this message
senthilnathang (bornspy) wrote :

Commenting the warning message fixed this crash

Changed in openobject-client:
status: Incomplete → Opinion
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

I dont see a valid reason here ! If you are receiving a traceback why dont you provide here?

commenting these two lines are just that you are commenting a feature which ask the user to save the records before sorting as sort is performed from server side so you need to have you data saved !

I would close this bug . If you still have problem please reopen it with adequate information to help us out in regenerating the issue.

Thanks,

Changed in openobject-client:
status: Opinion → Invalid
Revision history for this message
senthilnathang (bornspy) wrote :

Dear Naresh,

                Here i provide the full information and the condition where bug arises.

                In Production lot wizard (osv memory) i overwrite the default_get to get production lot with lot qty and filled according to the product qty and expiry date wise auotamatic assignment of lot qty.

              The module works fine without any bug,when i tested the module i mistakenly clicked the sort (field name) again without closing the warning again i clicked the sort the gtk stops responding again i checked many times same thing happens.

            But if the warning message box closed this crash don't occur.

           Then I try to traceback it by parser.py in gtk (tree view)

         I make print on those sort function then no response

         This bug also arises if you select sort and without closing warning message using other applications or processes and then try for gtk-client won't response.

         This will arise in ubuntu 10.04 LTS using python 2.6 Openerp version 6.0.2 installed using debian packages patched before jun 3 2011.

Changed in openobject-client:
status: Invalid → Opinion
senthilnathang (bornspy)
Changed in openobject-client:
status: Opinion → In Progress
Changed in openobject-client:
status: In Progress → New
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

I totally agree with Naresh. This is not bug it's current behavior of GTK client, So we can not consider this is a issue.
that's why I am closing this issue.

Thanks.

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

Other bug subscribers

Remote bug watches

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