[AVA] Random Bug with option

Bug #1007444 reported by YannickB (YOLO consulting)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SYNERPGY Projects
New
Critical
Vivek poddar

Bug Description

Hi vivek,

We have some errors with the option field :

OpenErp lib says :: -1 -- Traceback (most recent call last):
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/addons/audittrail/audittrail.py", line 518, in execute
    res = my_fct(db, uid, model, method, *args)
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/addons/audittrail/audittrail.py", line 496, in my_fct
    return fct_src(db, uid_orig, model, method, *args)
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/osv/osv.py", line 126, in wrapper
    self.abortResponse(1, inst.name, 'warning', inst.value)
  File "/home/openerp_user/openerp/openerp_V6_stable/server/bin/netsvc.py", line 70, in abortResponse
    raise Exception("%s -- %s\n\n%s"%(origin, description, details))
Exception: warning -- ValidateError
The value "Annulation 90J" for the field "option" is not in the selection

The big problem with this error is that it appears randomly. Sometimes it works, sometimes not. Of course, this is a big problem, we need a more reliable feature.

Try to connect to 91.216.203.101:8080, base testcroamac4 admin/admin.
Create or modify some product, try to create some contract and see what you can do.

Revision history for this message
YannickB (YOLO consulting) (yannick-buron) wrote :

Also, once you finished your work on Destock, this bug become a priority.

Revision history for this message
Vivek poddar (vivekimsit) wrote : Re: [Bug 1007444] Re: [AVA] Random Bug with option
Download full text (3.3 KiB)

Hi Yannick!

I have checked the bug resport on the commission but I failed to reproduce
it on your server. However there are some issues which I have noticed and
are very important:

1) My selection function is called only on the fields_view_get so there may
be the case when the form is not refreshed after server restart and then
causing the error which you described. May be u encountered the same issue.

2)When we change the product and then also we are getting the same options.
So, I think we should call the options function on the product on_change
event also(But that will be a bit difficult because form needs to be
refreshed to change the option list). However since its an important
feature therefore I can look in the code of the selection field once again
to go in more detail and see if there is any alternative.

Pls, give me the feedback on these issues. Also, I woke up early in the
morning for testing because I may not available till 6pm IST since there is
a very urgent work(Hopefully I will be free after today). but after that I
will be available. Also from tomorrow I will be available on my usual
timings.

Thanks and best Regards!

On Fri, Jun 1, 2012 at 7:44 PM, YannickB <email address hidden> wrote:

> Also, once you finished your work on Destock, this bug become a
> priority.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1007444
>
> Title:
> [AVA] Random Bug with option
>
> Status in SYNERPGY Projects:
> New
>
> Bug description:
> Hi vivek,
>
> We have some errors with the option field :
>
> OpenErp lib says :: -1 -- Traceback (most recent call last):
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/netsvc.py", line
> 489, in dispatch
> result = ExportService.getService(service_name).dispatch(method,
> auth, params)
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/service/web_services.py",
> line 599, in dispatch
> res = fn(db, uid, *params)
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/addons/audittrail/audittrail.py",
> line 518, in execute
> res = my_fct(db, uid, model, method, *args)
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/addons/audittrail/audittrail.py",
> line 496, in my_fct
> return fct_src(db, uid_orig, model, method, *args)
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/osv/osv.py", line
> 126, in wrapper
> self.abortResponse(1, inst.name, 'warning', inst.value)
> File
> "/home/openerp_user/openerp/openerp_V6_stable/server/bin/netsvc.py", line
> 70, in abortResponse
> raise Exception("%s -- %s\n\n%s"%(origin, description, details))
> Exception: warning -- ValidateError
> The value "Annulation 90J" for the field "option" is not in the selection
>
> The big problem with this error is that it appears randomly. Sometimes
> it works, sometimes not. Of course, this is a big problem, we need a
> more reliable feature.
>
> Try to connect to 91.216.203.101:8080, base testcroamac4 admin/admin.
> Create or modify some product, try to create some contract and see what
> you can do.
>
> To manage notificatio...

Read more...

Revision history for this message
YannickB (YOLO consulting) (yannick-buron) wrote :

Ok, the fact that you found this two problems is already a good thing, please work on it and hopefully it will resolve the problem.

Thanks and good luck.

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.