crash when creating final invoice in OERP 6.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
New report intrastat |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I'm trying to setup an instance with OERP 6.1 and various modules, and it seems that the current trunk has not followed some API changes in the 6.1 branch, resulting in crashes in super() chained calls.
Example at hand: when creating a final invoice for a sale, I get:
Server Traceback (most recent call last):
File "[$ROOT]
result = openerp.
File "[$ROOT]
result = ExportService.
File "[$ROOT]
res = fn(db, uid, *params)
File "[$ROOT]
return self.execute(db, uid, obj, method, *args, **kw or {})
File "[$ROOT]
return f(self, dbname, *args, **kwargs)
File "[$ROOT]
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "[$ROOT]
return getattr(object, method)(cr, uid, *args, **kw)
File "[$ROOT]
wf_service.
File "[$ROOT]
res2 = instance.
File "[$ROOT]
workitem.
File "[$ROOT]
ok = _split_test(cr, workitem, activity[
File "[$ROOT]
_join_test(cr, t[0], t[1], ident, stack)
File "[$ROOT]
create(
File "[$ROOT]
process(cr, res, ident, stack=stack)
File "[$ROOT]
result = _execute(cr, workitem, activity, ident, stack)
File "[$ROOT]
id_new = wkf_expr.
File "[$ROOT]
return _eval_expr(cr, ident, workitem, activity['action'])
File "[$ROOT]
ret = eval(line, env, nocopy=True)
File "[$ROOT]
return eval(test_
File "", line 1, in <module>
File "[$ROOT]
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "[$ROOT]
res = super(sale_order, self).action_
TypeError: action_
Instrumenting the code in base_sale_
I join a simple patch fixing the issue.
Related branches
- Alexandre Fayolle - camptocamp: Approve (code)
- New report intrastat commiters: Pending requested
-
Diff: 20 lines (+2/-3)1 file modifiedl10n_fr_intrastat_product/sale.py (+2/-3)
I have merged your branch.
To try to excuse myself for this very long delay, I have given you direct commit rights to this code :)