← Back to team overview

openerp-india team mailing list archive

[Bug 1008987] [NEW] cannot install hr_expense from module gallery view

 

Public bug reported:

Install hr_expense form module gallery view:


<record id="car_travel" model="product.product">
            <field name="list_price">0.32</field>
            <field name="type">service</field>
            <field name="name">Car Travel Expenses</field>
            <field name="default_code">CarTRA</field>
            <field name="categ_id" ref="hr_expense.cat_expense"/>
            <field name="hr_expense_ok" eval="True"/>
        </record>
Traceback (most recent call last):
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 854, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 821, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 773, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/aline/source/addons/trunk/product/product.py", line 532, in create
    obj_id = super(product_product, self).create(cr, uid, vals, context=context)
  File "/home/aline/source/addons/trunk/mail/mail_thread.py", line 83, in create
    thread_id = super(mail_thread, self).create(cr, uid, vals, context=context);
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4118, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 2399, in _add_missing_default_values
    defaults = self.default_get(cr, uid, missing_defaults, context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 1534, in default_get
    for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
2012-06-05 12:53:32,855 4438 ERROR test openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/addons/base/module/module.py", line 344, in button_immediate_install
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/aline/source/server/trunk/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/home/aline/source/server/trunk/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 332, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 243, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 182, in load_module_graph
    load_demo_xml(module_name, idref, mode)
  File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 76, in <lambda>
    load_demo_xml = lambda *args: _load_data(cr, *args, kind='demo_xml')
  File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 961, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 854, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 821, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 773, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/aline/source/addons/trunk/product/product.py", line 532, in create
    obj_id = super(product_product, self).create(cr, uid, vals, context=context)
  File "/home/aline/source/addons/trunk/mail/mail_thread.py", line 83, in create
    thread_id = super(mail_thread, self).create(cr, uid, vals, context=context);
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4118, in create
    vals = self._add_missing_default_values(cr, user, vals, context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 2399, in _add_missing_default_values
    defaults = self.default_get(cr, uid, missing_defaults, context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 1534, in default_get
    for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()

** Affects: openobject-addons
     Importance: High
         Status: Confirmed

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

** Changed in: openobject-addons
   Importance: Undecided => High

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

Title:
  cannot install hr_expense from module gallery view

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Install hr_expense form module gallery view:

  
  <record id="car_travel" model="product.product">
              <field name="list_price">0.32</field>
              <field name="type">service</field>
              <field name="name">Car Travel Expenses</field>
              <field name="default_code">CarTRA</field>
              <field name="categ_id" ref="hr_expense.cat_expense"/>
              <field name="hr_expense_ok" eval="True"/>
          </record>
  Traceback (most recent call last):
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 854, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 821, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 773, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/aline/source/addons/trunk/product/product.py", line 532, in create
      obj_id = super(product_product, self).create(cr, uid, vals, context=context)
    File "/home/aline/source/addons/trunk/mail/mail_thread.py", line 83, in create
      thread_id = super(mail_thread, self).create(cr, uid, vals, context=context);
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4118, in create
      vals = self._add_missing_default_values(cr, user, vals, context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 2399, in _add_missing_default_values
      defaults = self.default_get(cr, uid, missing_defaults, context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 1534, in default_get
      for i in range(len(field_value)):
  TypeError: object of type 'bool' has no len()
  2012-06-05 12:53:32,855 4438 ERROR test openerp.osv.osv: Uncaught exception
  Traceback (most recent call last):
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/aline/source/server/trunk/openerp/addons/base/module/module.py", line 344, in button_immediate_install
      _, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/home/aline/source/server/trunk/openerp/pooler.py", line 39, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/aline/source/server/trunk/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 332, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
    File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 243, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
    File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 182, in load_module_graph
      load_demo_xml(module_name, idref, mode)
    File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 76, in <lambda>
      load_demo_xml = lambda *args: _load_data(cr, *args, kind='demo_xml')
    File "/home/aline/source/server/trunk/openerp/modules/loading.py", line 124, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 961, in convert_xml_import
      obj.parse(doc.getroot())
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 854, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 821, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 773, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/aline/source/addons/trunk/product/product.py", line 532, in create
      obj_id = super(product_product, self).create(cr, uid, vals, context=context)
    File "/home/aline/source/addons/trunk/mail/mail_thread.py", line 83, in create
      thread_id = super(mail_thread, self).create(cr, uid, vals, context=context);
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4118, in create
      vals = self._add_missing_default_values(cr, user, vals, context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 2399, in _add_missing_default_values
      defaults = self.default_get(cr, uid, missing_defaults, context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 1534, 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/1008987/+subscriptions


Follow ups

References