Kanban view doesn't show constraint error message
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP Publisher's Warranty Team | |||
OpenERP Community Backports (Web) | Status tracked in 7.0 | |||||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
Problem description:
When dragging an item from one stage to another in the kanban view, it's possible to get the following error message:
"An error has occured while moving the record to this group: undefined"
It can for example happen when a constraint of the item is no longer valid (constraint depends on some factor elsewhere in OpenERP). When moving the item, the constraint is validated (since the item is changed), which blocks the action and results in the error.
Relevant code from kanban.js (web_kanban module):
var data = {};
});
In the alert, 'data.fault_code' is used. The variable doesn't have an attribute fault_code (resulting in 'undefined'). However, the 'error' variable has a variable 'data', which does have a variable 'fault_code'. So instead of 'data.fault_code', 'error.
Related branches
- Martin Trigaux (OpenERP): Pending requested
- Xavier (Open ERP): Pending requested
-
Diff: 12 lines (+0/-2)1 file modifiedaddons/web_kanban/static/src/js/kanban.js (+0/-2)
- Holger Brunn (Therp): Approve (code review)
- Leonardo Pistone: Approve (code review)
- Pedro Manuel Baeza: Approve (code review)
-
Diff: 12 lines (+0/-2)1 file modifiedaddons/web_kanban/static/src/js/kanban.js (+0/-2)
affects: | openobject-addons → openerp-web |
Changed in openerp-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openerp-web: | |
status: | New → Fix Committed |
no longer affects: | openerp-mgmtsystem |
It works.
data.fault_code =》error. data.fault_ code
Please merge into the next release