Comment 51 for bug 388145

Revision history for this message
Thorsten Vocks (OpenBig.org) (openbig.org) wrote :

Thanks for your initiative regarding accounting flow.

i got the same error on installation as Jan a few posts before
with version 5.0.1 stable server, client, addons
i updated §addons" folder with todays extra-addons module
account_anglo_saxon from "stable_5.0_extra-addons".

TypeError: inv_line_create() takes exactly 5 arguments (3 given)

Complete traceback

Traceback (most recent call last):
  File "/home/vockst/openerp/server/bin/netsvc.py", line 235, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/vockst/openerp/server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/home/vockst/openerp/server/bin/service/web_services.py", line 520, in exec_workflow
    res = service.exec_workflow(db, uid, object, method, id)
  File "/home/vockst/openerp/server/bin/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/vockst/openerp/server/bin/osv/osv.py", line 137, in exec_workflow
    res = self.exec_workflow_cr(cr, uid, obj, method, *args)
  File "/home/vockst/openerp/server/bin/osv/osv.py", line 130, in exec_workflow_cr
    return wf_service.trg_validate(uid, obj, args[0], method, cr)
  File "/home/vockst/openerp/server/bin/workflow/wkf_service.py", line 81, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/vockst/openerp/server/bin/workflow/instance.py", line 49, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 62, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 171, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 179, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 42, in create
    process(cr, res, ident, stack=stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 62, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 171, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 179, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 42, in create
    process(cr, res, ident, stack=stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 54, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/vockst/openerp/server/bin/workflow/workitem.py", line 126, in _execute
    id_new = wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/vockst/openerp/server/bin/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/vockst/openerp/server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env)
  File "<string>", line 1, in <module>
  File "/home/vockst/openerp/server/bin/osv/orm.py", line 160, in <lambda>
    return lambda *args, **argv: getattr(self._table, name)(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/vockst/openerp/server/bin/addons/purchase/purchase.py", line 316, in action_invoice_create
    il.append(self.inv_line_create(a,ol))
TypeError: inv_line_create() takes exactly 5 arguments (3 given)