Ciao a tutti, nell'ambiente di test ho installato il modulo l10n_it_withholding_tax di cui in azienda abbiamo bisogno.
Adesso se vado a registrare una fattura cliente, al momento della validazione (passaggio da draft ad open), si verifica il seguente errore :
Client Traceback (most recent call last):
File "/opt/lp/web/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/opt/lp/web/addons/web/controllers/main.py", line 1056, in exec_workflow
r = req.session.exec_workflow(model, id, signal)
File "/opt/lp/web/addons/web/common/session.py", line 100, in exec_workflow
r = self.proxy('object').exec_workflow(self._db, self._uid, self._password, model, signal, id)
File "/opt/lp/web/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/opt/lp/web/addons/web/common/http.py", line 608, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/lp/web/addons/web/common/http.py", line 593, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/lp/openerp/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/lp/openerp/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/opt/lp/openerp/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/lp/openerp/openerp/osv/osv.py", line 196, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/opt/lp/openerp/openerp/osv/osv.py", line 189, in exec_workflow_cr
return wf_service.trg_validate(uid, obj, args[0], method, cr)
File "/opt/lp/openerp/openerp/workflow/wkf_service.py", line 124, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/opt/lp/openerp/openerp/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity, ident, signal, stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 176, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 184, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/opt/lp/openerp/openerp/workflow/workitem.py", line 107, in _execute
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
File "/opt/lp/openerp/openerp/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity)
File "/opt/lp/openerp/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/opt/lp/openerp/openerp/tools/safe_eval.py", line 241, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/opt/lp/openerp/openerp/osv/orm.py", line 368, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/lp/openobject-italia/l10n_it_withholding_tax/account.py", line 41, in action_move_create
res = super(account_invoice, self).action_move_create(cr, uid, ids, context=context)
TypeError: action_move_create() got an unexpected keyword argument 'context'