← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 778546] [NEW] AttributeError: 'ir_model_data' object has no attribute 'get_rev_ref'

 

Public bug reported:

When exporting data (account.*) using base_module_record, I have
experience the following error


Environment Information : 
System : Linux-2.6.32-31-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.2 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-31-generic
Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 636, in dispatch
    res = fn(db, uid, *params)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 663, in exp_execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 645, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 153, in execute_cr
    return self.execute_cr(cr, uid, data, next_state, context)
  File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 72, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/wizard/base_module_record_data.py", line 121, in _create_xml
    res_xml = mod.generate_xml(cr, uid)
  File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 481, in generate_xml
    res_list,noupdate = self._generate_object_xml(cr, uid, rec[1], rec[2], doc, rec[3])
  File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 396, in _generate_object_xml
    id = self._create_id(cr, uid, rec[2], rec[5], rid=rec[4])
  File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 111, in _create_id
    di = self._imd.get_rev_ref(cr, uid, model, rid)
AttributeError: 'ir_model_data' object has no attribute 'get_rev_ref'

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

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/778546

Title:
  AttributeError: 'ir_model_data' object has no attribute 'get_rev_ref'

Status in OpenERP Modules (addons):
  New

Bug description:
  When exporting data (account.*) using base_module_record, I have
  experience the following error

  
  Environment Information : 
  System : Linux-2.6.32-31-generic-x86_64-with-Ubuntu-10.04-lucid
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.04.2 LTS
  Release:	10.04
  Codename:	lucid
  Operating System Release : 2.6.32-31-generic
  Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
  Operating System Architecture : 64bit
  Operating System Locale : en_US.UTF8
  Python Version : 2.6.5
  OpenERP-Client Version : 6.0.2
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 636, in dispatch
      res = fn(db, uid, *params)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 663, in exp_execute
      return self._execute(db, uid, wiz_id, datas, action, context)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 645, in _execute
      return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 177, in execute
      res = self.execute_cr(cr, uid, data, state, context)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 153, in execute_cr
      return self.execute_cr(cr, uid, data, next_state, context)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/wizard/__init__.py", line 72, in execute_cr
      action_res = action(self, cr, uid, data, context)
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/wizard/base_module_record_data.py", line 121, in _create_xml
      res_xml = mod.generate_xml(cr, uid)
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 481, in generate_xml
      res_list,noupdate = self._generate_object_xml(cr, uid, rec[1], rec[2], doc, rec[3])
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 396, in _generate_object_xml
      id = self._create_id(cr, uid, rec[2], rec[5], rid=rec[4])
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base_module_record/base_module_record.py", line 111, in _create_id
      di = self._imd.get_rev_ref(cr, uid, model, rid)
  AttributeError: 'ir_model_data' object has no attribute 'get_rev_ref'


Follow ups

References