← Back to team overview

openerp-india team mailing list archive

[Bug 1259597] [NEW] [Nightly 6.1] German Translation breaks project_long_term

 

Public bug reported:

Hi guys,

I just noticed that switching the userinterface of 6.1 to German
Translation breaks projects_long_term.py.

1. Create new Database
2. Install project management module
3. Install project long term
4. Goto Project Module
5. Attempt to create a new Phase => works
6. Abort creation
7. Install German Translation
8. Switch admin users Interface to German
9. Goto projects Module and attempt to create a new Phase => fails with:

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 593, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 186, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 129, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 195, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 183, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1511, in default_get
    defaults[f] = self._defaults[f](self, cr, uid, context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/project_long_term/project_long_term.py", line 126, in <lambda>
    'product_uom': lambda self,cr,uid,c: self.pool.get('product.uom').search(cr, uid, [('name', '=', _('Day'))], context=c)[0]
IndexError: list index out of range

10. Switch Interface back to English
11. Try to create a new Phase => Works again.

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

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

Title:
  [Nightly 6.1] German Translation breaks project_long_term

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi guys,

  I just noticed that switching the userinterface of 6.1 to German
  Translation breaks projects_long_term.py.

  1. Create new Database
  2. Install project management module
  3. Install project long term
  4. Goto Project Module
  5. Attempt to create a new Phase => works
  6. Abort creation
  7. Install German Translation
  8. Switch admin users Interface to German
  9. Goto projects Module and attempt to create a new Phase => fails with:

  Server Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 593, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 186, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 129, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 195, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 183, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1511, in default_get
      defaults[f] = self._defaults[f](self, cr, uid, context)
    File "/usr/lib/pymodules/python2.7/openerp/addons/project_long_term/project_long_term.py", line 126, in <lambda>
      'product_uom': lambda self,cr,uid,c: self.pool.get('product.uom').search(cr, uid, [('name', '=', _('Day'))], context=c)[0]
  IndexError: list index out of range

  10. Switch Interface back to English
  11. Try to create a new Phase => Works again.

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


Follow ups

References