← Back to team overview

credativ team mailing list archive

[Bug 710533] Re: missing Context in workflow methods

 

The workflow context issue was originally reported a long time ago, and
wrongly marked as a duplicate. I reopened it now: bug 434266. That bug
should be seen as blocking the resolution of this one. They're not truly
duplicates, because the bug report here talks about further context
passing in addons code.

As a result, I'm reassigning this one to addons and restoring the
original title as well, but keep in mind that it cannot be fully solved
until server bug 434266 is fixed.

Thanks!

** Project changed: openobject-server => openobject-addons

** Changed in: openobject-addons
     Assignee: OpenERP's Framework R&D (openerp-dev-framework) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

** Summary changed:

- missing Context in workflow methods
+ account invoice model translation problem with no context param

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

Title:
  account invoice model translation problem with no context param

Status in OpenERP Addons (modules):
  Confirmed

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)

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