openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #24723
[Bug 1152191] Re: POS : attribute error when closing a session
Hello,
I have merged the fix from Mohammed (thanks for the patch) into 7.0. You
should not face this traceback anymore.
Regards
revno: 9373 [merge]
revision-id: mat@xxxxxxxxxxx-20130821125429-uzaqw4yx2ve63wja
** Changed in: openobject-addons
Importance: Undecided => Low
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1152191
Title:
POS : attribute error when closing a session
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Hi,
I'm facing a traceback when I close a session with the 7.0 point of
sale.
I've juste tried with the latest bzr and I ge the same error.
It seems to happen when the client forgot to configure an account somewhere, leading to a False property, thus leading to an attribute error.
Here it is below :
Traceback (most recent call last):
File "openobject-server/openerp/netsvc.py", line 293, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "openobject-server/openerp/service/web_services.py", line 618, in dispatch
res = fn(db, uid, *params)
File "openobject-server/openerp/osv/osv.py", line 131, in wrapper
return f(self, dbname, *args, **kwargs)
File "openobject-server/openerp/osv/osv.py", line 220, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, signal, *args)
File "openobject-server/openerp/osv/osv.py", line 213, in exec_workflow_cr
return object._workflow_signal(cr, uid, [res_id], signal)[res_id]
File "openobject-server/openerp/osv/orm.py", line 3926, in _workflow_signal
result[res_id] = wf_service.trg_validate(uid, self._name, res_id, signal, cr)
File "openobject-server/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "openobject-server/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "openobject-server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "openobject-server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "openobject-server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "openobject-server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "openobject-server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "openobject-server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "openobject-server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "openobject-server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "openobject-server/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "openobject-server/openerp/workflow/workitem.py", line 106, in _execute
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
File "openobject-server/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "openobject-server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "openobject-server/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 "openobject-server/openerp/osv/orm.py", line 374, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "openobject-addons/point_of_sale/point_of_sale.py", line 433, in wkf_action_close
self._confirm_orders(cr, uid, ids, context=context)
File "openobject-addons/point_of_sale/point_of_sale.py", line 452, in _confirm_orders
self.pool.get('pos.order')._create_account_move_line(cr, uid, order_ids, session, move_id, context=context)
File "openobject-addons/point_of_sale/point_of_sale.py", line 923, in _create_account_move_line
account_def = property_obj.get(cr, uid, 'property_account_receivable', 'res.partner', context=context).id
AttributeError: 'bool' object has no attribute 'id'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1152191/+subscriptions