← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 753807] Re: KeyError: ('name', u'payslip.pdf'), ('source', u'Basic Salary \u2013 Leaves'), ('types', u'report'))

 

I installed the following modules

hr
hr_attendance
hr_contract
hr_evaluation
hr_expense
hr_holidays
hr_payroll
hr_recruitment
hr_timesheet

And the problem seems to happen in module hr_payroll

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

Title:
  KeyError: ('name', u'payslip.pdf'), ('source', u'Basic Salary \u2013
  Leaves'), ('types', u'report'))

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  I face the error below when using "Synchronize Translations".

  Both client and servers are the official 6.0.2 release.

  
  Environment Information : 
  System : Linux-2.6.32-30-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-30-generic
  Operating System Version : #59-Ubuntu SMP Tue Mar 1 21:30:46 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 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base/module/wizard/base_update_translations.py", line 49, in act_update
      tools.trans_load_data(cr, buf, 'csv', this.lang, lang_name=lang_name)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/translate.py", line 932, in trans_load_data
      trans_obj.create(cr, uid, dic)
    File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/base/ir/ir_translation.py", line 186, in create
      self._get_source.clear_cache(cursor.dbname, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/misc.py", line 783, in clear
      self.cache.pop(key)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/func.py", line 89, in wrapper
      return func(self, *args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/lru.py", line 112, in pop
      v=self[key]
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/func.py", line 89, in wrapper
      return func(self, *args, **kwargs)
    File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/tools/lru.py", line 37, in __getitem__
      a = self.d[obj].me
  KeyError: (('dbname', 'test60'), ('lang', u'vi_VN'), ('name', u'payslip.pdf'), ('source', u'Basic Salary \u2013 Leaves'), ('types', u'report'))



References