Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

COuld you help with this error trying to close a pos order?

By
Pascal Tremblay
on 5/1/15, 1:53 PM 774 views

We have a problem this morning! A new error trying to close a session in the point of sale.

Error happens when I click the button « Validate closing & post entries ».

Somebody could help?


Odoo

Odoo Server Error

Traceback (most recent call last):

File "/home/odoo/openerp/http.py", line 525, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/odoo/openerp/http.py", line 562, in dispatch

result = self._call_function(**self.params)

File "/home/odoo/openerp/http.py", line 302, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/odoo/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/openerp/http.py", line 299, in checked_call

return self.endpoint(*a, **kw)

File "/home/odoo/openerp/http.py", line 791, in __call__

return self.method(*args, **kw)

File "/home/odoo/openerp/http.py", line 395, in response_wrap

response = f(*args, **kw)

File "/home/odoo/addons/web/controllers/main.py", line 960, in exec_workflow

return request.session.exec_workflow(model, id, signal)

File "/home/odoo/openerp/http.py", line 1096, in exec_workflow

r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)

File "/home/odoo/openerp/http.py", line 867, in proxy_method

result = dispatch_rpc(self.service_name, method, args)

File "/home/odoo/openerp/http.py", line 114, in dispatch_rpc

result = dispatch(method, params)

File "/home/odoo/openerp/service/model.py", line 37, in dispatch

res = fn(db, uid, *params)

File "/home/odoo/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/openerp/service/model.py", line 183, in exec_workflow

return exec_workflow_cr(cr, uid, obj, signal, *args)

File "/home/odoo/openerp/service/model.py", line 177, in exec_workflow_cr

return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]

File "/home/odoo/openerp/service/model.py", line 159, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)

File "/home/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/openerp/models.py", line 3491, in signal_workflow

result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)

File "/home/odoo/openerp/workflow/__init__.py", line 85, in trg_validate

return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)

File "/home/odoo/openerp/workflow/service.py", line 91, in validate

res2 = wi.validate(signal)

File "/home/odoo/openerp/workflow/instance.py", line 75, in validate

wi.process(signal=signal, force_running=force_running, stack=stack)

File "/home/odoo/openerp/workflow/workitem.py", line 120, in process

ok = self._split_test(activity['split_mode'], signal, stack)

File "/home/odoo/openerp/workflow/workitem.py", line 248, in _split_test

self._join_test(t[0], t[1], stack)

File "/home/odoo/openerp/workflow/workitem.py", line 257, in _join_test

WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

File "/home/odoo/openerp/workflow/workitem.py", line 95, in create

workflow_item.process(stack=stack)

File "/home/odoo/openerp/workflow/workitem.py", line 120, in process

ok = self._split_test(activity['split_mode'], signal, stack)

File "/home/odoo/openerp/workflow/workitem.py", line 248, in _split_test

self._join_test(t[0], t[1], stack)

File "/home/odoo/openerp/workflow/workitem.py", line 257, in _join_test

WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

File "/home/odoo/openerp/workflow/workitem.py", line 95, in create

workflow_item.process(stack=stack)

File "/home/odoo/openerp/workflow/workitem.py", line 116, in process

if not self._execute(activity, stack):

File "/home/odoo/openerp/workflow/workitem.py", line 162, in _execute

returned_action = self.wkf_expr_execute(activity)

File "/home/odoo/openerp/workflow/workitem.py", line 313, in wkf_expr_execute

return self.wkf_expr_eval_expr(activity['action'])

File "/home/odoo/openerp/workflow/workitem.py", line 291, in wkf_expr_eval_expr

result = eval(line, env, nocopy=True)

File "/home/odoo/openerp/tools/safe_eval.py", line 313, in safe_eval

return eval(c, globals_dict, locals_dict)

File "", line 1, in <module>

File "/home/odoo/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/home/odoo/openerp/api.py", line 546, in new_api

result = method(self._model, cr, uid, self.ids, *args, **kwargs)

File "/home/odoo/addons/point_of_sale/point_of_sale.py", line 501, in wkf_action_close

getattr(st, 'button_confirm_%s' % st.journal_id.type)(context=context)

File "/home/odoo/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

ValueError: "button_confirm_bank() got an unexpected keyword argument 'context'" while evaluating

u'wkf_action_close()'

0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 5/2/15, 10:19 AM

In our POintof sale configuration, one Available Payment Methods was not of « cash » type. This is why we had an error.

Thanks

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/1/15, 1:53 PM
Seen: 774 times
Last updated: 5/3/16, 1:44 PM