← Back to team overview

openerp-india team mailing list archive

[Bug 932091] [NEW] 'int' object has no attribute 'strftime'

 

Public bug reported:

Server Traceback (most recent call last):
  File "/home/joshua/oe/web/openerp-web/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/joshua/oe/server/openobject-server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/joshua/oe/server/openobject-server/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/joshua/oe/server/openobject-server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/joshua/oe/server/openobject-server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/home/joshua/oe/server/openobject-server/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 197, in load_module_graph
    load_demo(module_name, idref, mode)
  File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 93, in <lambda>
    load_demo = lambda *args: _load_data(cr, *args, kind='demo')
  File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 136, in _load_data
    tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
  File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 909, in yaml_import
  File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 843, in process
    self._process_node(node)
  File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 856, in _process_node
    self.process_record(node)
  File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 349, in process_record
    record_dict = self._create_record(model, fields, view_id, default=default)
  File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 360, in _create_record
    defaults = default and model.default_get(self.cr, 1, allfields, context=self.context) or {}
  File "/home/joshua/oe/server/openobject-server/openerp/osv/orm.py", line 1498, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/home/joshua/oe/server/openobject-server/openerp/osv/fields.py", line 297, in context_today
    return (context_today or today).strftime(tools.DEFAULT_SERVER_DATE_FORMAT)
AttributeError: 'int' object has no attribute 'strftime'

Dear All.
When I install the purchase module(in Trunk), there is this problem.
Joshua

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/932091

Title:
  'int' object has no attribute 'strftime'

Status in OpenERP Server:
  New

Bug description:
  Server Traceback (most recent call last):
    File "/home/joshua/oe/web/openerp-web/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/joshua/oe/server/openobject-server/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/joshua/oe/server/openobject-server/openerp/service/web_services.py", line 572, in dispatch
      res = fn(db, uid, *params)
    File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/joshua/oe/server/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/joshua/oe/server/openobject-server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
      _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/home/joshua/oe/server/openobject-server/openerp/pooler.py", line 39, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/joshua/oe/server/openobject-server/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 338, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
    File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 253, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
    File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 197, in load_module_graph
      load_demo(module_name, idref, mode)
    File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 93, in <lambda>
      load_demo = lambda *args: _load_data(cr, *args, kind='demo')
    File "/home/joshua/oe/server/openobject-server/openerp/modules/loading.py", line 136, in _load_data
      tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
    File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 909, in yaml_import
    File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 843, in process
      self._process_node(node)
    File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 856, in _process_node
      self.process_record(node)
    File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 349, in process_record
      record_dict = self._create_record(model, fields, view_id, default=default)
    File "/home/joshua/oe/server/openobject-server/openerp/tools/yaml_import.py", line 360, in _create_record
      defaults = default and model.default_get(self.cr, 1, allfields, context=self.context) or {}
    File "/home/joshua/oe/server/openobject-server/openerp/osv/orm.py", line 1498, in default_get
      defaults[f] = self._defaults[f](self, cr, uid, context)
    File "/home/joshua/oe/server/openobject-server/openerp/osv/fields.py", line 297, in context_today
      return (context_today or today).strftime(tools.DEFAULT_SERVER_DATE_FORMAT)
  AttributeError: 'int' object has no attribute 'strftime'

  Dear All.
  When I install the purchase module(in Trunk), there is this problem.
  Joshua

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


Follow ups

References