← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 710533] [NEW] account invoice model translation problem with no context param

 

Public bug reported:

I'm testing openerp-6.0.1

There is few bug that getting no context param on argument list:

addons/account/invoice.py : line 654 function def _get_analytic_lines(self, cr, uid, id)
addons/account/invoice.py : line 664 iml = self.pool.get('account.invoice.line').move_line_get(cr, uid, inv.id) # missing context=context
addons/account/invoice.py : line 820 iml += ait_obj.move_line_get(cr, uid, inv.id) # missing context=context
addons/account/invoice.py : line 798 iml = self._get_analytic_lines(cr, uid, inv.id) # missing context=context
addons/account/invoice.py : line 784 context = {} # lang not in context

The problem is occured in translation :

DEBUG:translate:no translation language detected, skipping translation
for "'Error !'"

on tools/translate.py line : 219 logger.debug('no translation language
detected, skipping translation for "%r" ', source)

** 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/710533

Title:
  account invoice model translation problem with no context param

Status in OpenERP Modules (addons):
  New

Bug description:
  I'm testing openerp-6.0.1

  There is few bug that getting no context param on argument list:

  addons/account/invoice.py : line 654 function def _get_analytic_lines(self, cr, uid, id)
  addons/account/invoice.py : line 664 iml = self.pool.get('account.invoice.line').move_line_get(cr, uid, inv.id) # missing context=context
  addons/account/invoice.py : line 820 iml += ait_obj.move_line_get(cr, uid, inv.id) # missing context=context
  addons/account/invoice.py : line 798 iml = self._get_analytic_lines(cr, uid, inv.id) # missing context=context
  addons/account/invoice.py : line 784 context = {} # lang not in context

  The problem is occured in translation :

  DEBUG:translate:no translation language detected, skipping translation
  for "'Error !'"

  on tools/translate.py line : 219 logger.debug('no translation language
  detected, skipping translation for "%r" ', source)





Follow ups

References