account invoice model translation problem with no context param

Bug #710533 reported by Jacara
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

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)

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

hello jacara,

I agree with you for adding context as parameter for given lines but for that we need context value in parameter. But problem seems in workflow.

See action_move_create() called from workflow services and workflow does not pass context.

If we get context from workflow then we can used it in method argument.
It is problem of framework.

Thanks,
ara

Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP's Framework R&D (openerp-dev-framework)
status: In Progress → Confirmed
affects: openobject-addons → openobject-server
Changed in openobject-server:
status: Confirmed → In Progress
status: In Progress → Confirmed
summary: - account invoice model translation problem with no context param
+ missing Context in workflow methods
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : 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!

affects: 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: - missing Context in workflow methods
+ account invoice model translation problem with no context param
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Jacara,

Thanks for reporting, the solution of this bug is proposed in
branch lp:~openerp-dev/openobject-addons/trunk-bug-710533-bde
with following Revision ID and Number:

Revision ID: <email address hidden>
Revision Number: 5937

The solution will be merged in main addons soon.

Thanks & Regards,
Devnani Bharat R.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

fix released in revision 6242.

thanks for the contribution,
Quentin

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.