← Back to team overview

openerp-india team mailing list archive

[Bug 1075071] Re: [trunk] : Bug on creation of product

 

after inspection,

the source of the bug is bellow:

i have add before the error line a  log line.

the field  supplier_taxes_id  has no default value.

After correct the default value on accounting configuration i can now
create product.

two possible reason.
    - at the creation of the database, a lot of configuration wizard have bug (resolve by decrease  the value of worker in gunicorn). so the  default value was not input on the database creation.
   - the default value is not input at the creation database.

is it possible to have an error message instead of a trace back if
default value is not found ?


thanks for all

stephane

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

Title:
  [trunk] : Bug on creation of product

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  here is the the trace back follow.

  i d'ont have any explication more

  
  thanks for all

  
  ERROR None openerp.osv.osv: Uncaught exception
  Traceback (most recent call last):
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 1622, in default_get
      for i in range(len(field_value)):
  TypeError: object of type 'bool' has no len()
  2012-11-05 09:06:36,198 16632 ERROR None openerp.netsvc: object of type 'bool' has no len()
  Traceback (most recent call last):
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/netsvc.py", line 361, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/service/web_services.py", line 585, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 1622, in default_get
      for i in range(len(field_value)):
  TypeError: object of type 'bool' has no len()

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


References