← Back to team overview

openerp-india team mailing list archive

[Bug 1012486] Re: [6.1] Opening new cash statement getting errors

 

Hello Jacara,

I have checked your issue.But it's working fine for me
I mean ,I'm also getting First item like [5, False, False] but not that error message.

Please describe more or provide your scenario to met situation.

Waiting for your reply..!

Thanks

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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/1012486

Title:
  [6.1] Opening new cash statement getting errors

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  
  File "/home/erp/openerp/addons/account/account_cash_statement.py", line 222, in create
      if end[2]['pieces'] == dict_val['pieces']:
  TypeError: 'bool' object has no attribute '__getitem__'

  I checked vals variable in create method. value of key
  starting_detail_ids seems wrong

  'starting_details_ids': [[5, False, False], [0, False, {'subtotal':
  False, 'number': 0, 'pieces': 1}], [0, False, {'subtotal': False,
  'number': 0, 'pieces': 2}], [0, False, {'subtotal': False, 'number':
  0, 'pieces': 5}], [0, False, {'subtotal': False, 'number': 0,
  'pieces': 10}], [0, False, {'subtotal': False, 'number': 0, 'pieces':
  20}], [0, False, {'subtotal': False, 'number': 0, 'pieces': 50}], [0,
  False, {'subtotal': False, 'number': 0, 'pieces': 100}], [0, False,
  {'subtotal': False, 'number': 0, 'pieces': 500}]],

  First item is [5, False, False]. This happens only in web. On gtk-
  client this problem does not happens.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1012486/+subscriptions


References