Edit button triggers on_change events

Bug #903619 reported by lambdasoftware
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
New
Undecided
Unassigned

Bug Description

In GTK client when you load a record on_change events doesn't trigger, and that is correct because is getting the values from the DB, but in web client when you press the edit button, and the form is loading the values, all the on_change methods are triggered.

I have a lot of on_change envents on a view which some of them also shows some warnings and everytime a record is loaded i see all those warnings and the client works so slowly because is triggering one by one all the methods.

The webs server log, which is triggering an on_change per second, so imagine when i have about 50 or 60 fields triggering their method...

172.16.100.152 - - [13/Dec/2011:09:07:34] "POST /openerp/form/on_change HTTP/1.1" 200 43 "http://172.16.100.207:8080/openerp/menu?active=275" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
172.16.100.152 - - [13/Dec/2011:09:07:35] "POST /openerp/form/on_change HTTP/1.1" 200 450 "http://172.16.100.207:8080/openerp/menu?active=275" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
172.16.100.152 - - [13/Dec/2011:09:07:36] "POST /openerp/form/on_change HTTP/1.1" 200 450 "http://172.16.100.207:8080/openerp/menu?active=275" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
172.16.100.152 - - [13/Dec/2011:09:07:37] "POST /openerp/form/on_change HTTP/1.1" 200 43 "http://172.16.100.207:8080/openerp/menu?active=275" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
172.16.100.152 - - [13/Dec/2011:09:07:38] "POST /openerp/form/on_change HTTP/1.1" 200 43 "http://172.16.100.207:8080/openerp/menu?active=275" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"

summary: - Edit button triggers on_change events and shouldn't
+ Edit button triggers on_change events
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.