Comment 30 for bug 388145

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

Create a new database with profile Manufacturing
Install the account_anglo_saxon module
add to stock location a ledger account (3000)
Create a product-category -> assign the 4 ledger accounts
Create a product -> assign the just created product-category
Create a purchase order for the product
Confirm the purchase order
Approve the purchase order

While approving the purchase order the below error popup.

revision-id: <email address hidden>
date: 2009-07-09 10:39:13 +0200
build-date: 2009-07-13 10:02:39 +0200
revno: 1803
branch-nick: server

revision-id: <email address hidden>
date: 2009-07-09 18:45:20 +0530
build-date: 2009-07-13 10:03:20 +0200
revno: 958
branch-nick: client

revision-id: <email address hidden>
date: 2009-07-10 13:15:30 +0530
build-date: 2009-07-13 10:04:16 +0200
revno: 2375
branch-nick: addons

Environment_Information :
PlatForm : linux2
Operating System : posix
Operating System Version : [GCC 4.3.2]
Operating System Locale : nl_NL
Python Version : 2.5.2
OpenERP-Client Version : 5.0.1
Last revision Details :

Traceback (most recent call last):
  File "/home/jverlaan/openerp/server/bin/netsvc.py", line 240, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/jverlaan/openerp/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/jverlaan/openerp/server/bin/service/web_services.py", line 568, in exec_workflow
    res = service.exec_workflow(db, uid, object, method, id)
  File "/home/jverlaan/openerp/server/bin/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jverlaan/openerp/server/bin/osv/osv.py", line 137, in exec_workflow
    res = self.exec_workflow_cr(cr, uid, obj, method, *args)
  File "/home/jverlaan/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/jverlaan/openerp/server/bin/workflow/wkf_service.py", line 81, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/jverlaan/openerp/server/bin/workflow/instance.py", line 49, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 62, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 175, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 183, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 42, in create
    process(cr, res, ident, stack=stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 62, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 175, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 183, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 42, in create
    process(cr, res, ident, stack=stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 54, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/jverlaan/openerp/server/bin/workflow/workitem.py", line 127, in _execute
    id_new = wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/jverlaan/openerp/server/bin/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/jverlaan/openerp/server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env)
  File "<string>", line 1, in <module>
  File "/home/jverlaan/openerp/server/bin/osv/orm.py", line 168, in <lambda>
    return lambda *args, **argv: getattr(self._table, name)(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/jverlaan/openerp/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)