Comment 8 for bug 856501

Revision history for this message
Amit Parik (amit-parik) wrote : Re: AttributeError: 'bool' object has no attribute 'id'

Hello,

When I have make the payment from POS without demo data I have faced the following traceback.

Traceback (most recent call last):
  File "/home/amp/workspace/trunk6/server/openerp/wsgi.py", line 71, in xmlrpc_return
    result = openerp.netsvc.dispatch_rpc(service, method, params)
  File "/home/amp/workspace/trunk6/server/openerp/netsvc.py", line 328, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/amp/workspace/trunk6/server/openerp/service/web_services.py", line 568, in dispatch
    res = fn(db, uid, *params)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 116, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 170, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 161, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amp/workspace/trunk6/addons/point_of_sale/wizard/pos_payment.py", line 49, in check
    order_obj.add_payment(cr, uid, active_id, data, context=context)
  File "/home/amp/workspace/trunk6/addons/point_of_sale/point_of_sale.py", line 263, in add_payment
    and order.partner_id.property_account_receivable.id or account_def.id or curr_c.account_receivable.id
AttributeError: 'bool' object has no attribute 'id'

I am confirming this bug for this traceback.

Thanks.