statusbar widget does not trigger on_change function
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Committed
|
Wishlist
|
OpenERP Publisher's Warranty Team |
Bug Description
OpenERP 7.0 nightly build: 20130417-232500
Description:
If you have a clickable statusbar widget, changing the stage does not trigger the on_change function.
I have found this problem trying to use the new unified state/stage feature introduced with OE7.0 myself, but you can see how it is already happening in the CRM module. Leads have a clickable statusbar with an on_change function defined in crm/crm_
Steps to reproduce:
1- Create an empty database
2- Install CRM app
3- Run the server in a debugging environment and set a breakpoint inside the onchange_stage_id function (crm/crm_
4- Create a lead (you will reach the breakpoint when creating it, that's fine, just continue)
5- Click on any stage on the statusbar. You will see how the on_change function isn't called.
6- Save the lead if you hadn't yet and click on the "Cancel case" button. You will see how the function is called server side (check stack)
Whenever you click on the satusbar, the record is beign saved with a different stage_id, so it is changing and the on_change function should have been called.
Related branches
- Martin Trigaux (OpenERP) (community): Disapprove
- Antony Lesuisse (OpenERP): Pending requested
-
Diff: 26 lines (+5/-5)1 file modifiedaddons/web/static/src/js/view_form.js (+5/-5)
Changed in openerp-web: | |
status: | New → Confirmed |
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
importance: | Undecided → Low |
Changed in openerp-web: | |
assignee: | OpenERP R&D Web Team (openerp-dev-web) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openerp-web: | |
status: | Confirmed → Fix Committed |
Hi,
This also happen with the kanban view.