← Back to team overview

credativ team mailing list archive

[Bug 897509] [NEW] [6.0] [account] 'bool' object has no attribute 'split'

 

Public bug reported:

Traceback (most recent call last):
  File "/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/openerp/server/bin/addons/account/invoice.py", line 1337, in product_id_change
    my_value_reference = my_value[0]["value_reference"].split(",")
AttributeError: 'bool' object has no attribute 'split'

The search needs add validation 
('value_reference','<>',False)

property_obj.search(cr, uid, [... ('value_reference','<>',False) ])

I will make a proposal merge.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/897509

Title:
  [6.0] [account]  'bool' object has no attribute 'split'

Status in OpenERP Addons (modules):
  New

Bug description:
  Traceback (most recent call last):
    File "/openerp/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/openerp/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/openerp/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/openerp/server/bin/addons/account/invoice.py", line 1337, in product_id_change
      my_value_reference = my_value[0]["value_reference"].split(",")
  AttributeError: 'bool' object has no attribute 'split'

  The search needs add validation 
  ('value_reference','<>',False)

  property_obj.search(cr, uid, [... ('value_reference','<>',False) ])

  I will make a proposal merge.

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


Follow ups

References