Workflow function activities explode if they contain empty lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP's Framework R&D |
Bug Description
- install a fresh base, for example with the 'account' module.
- Modify the invoice workflow 'open' activity, just by adding a newline at the end, or by inserting blank lines
- create an invoice
- try to validate the invoice
→ traceback
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.exec_
File "/home/
return wf_service.
File "/home/
res2 = instance.
File "/home/
workitem.
File "/home/
ok = _split_test(cr, workitem, activity[
File "/home/
_join_test(cr, t[0], t[1], ident, stack)
File "/home/
create(
File "/home/
process(cr, res, ident, stack=stack)
File "/home/
result = _execute(cr, workitem, activity, ident, stack)
File "/home/
returned_action = wkf_expr.
File "/home/
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/
ret = eval(line, env, nocopy=True)
File "/home/
return eval(test_
File "/home/
code_obj = compile(expr, "", mode)
File "<string>", line 0
Related branches
- Vo Minh Thu: Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedopenerp/workflow/wkf_expr.py (+1/-0)
- Vo Minh Thu (community): Needs Fixing
-
Diff: 12 lines (+2/-0)1 file modifiedopenerp/workflow/wkf_expr.py (+2/-0)
summary: |
- Workflow transitions explode if there are newlines in the activity + Workflow function activities explode if they contain empty lines |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
I've pushed a simple fix to lp:~anybox/openobject-server/lp1035976