A workaround for this issue was implemented in 6.0 [1] and 6.1 [2], and will be ported to trunk along with the next batch of corrections. It is similar to the patch suggested by Jay in comment #13, and works by translating in the language of the user performing the action, when no specific context can be found. There is a limitation to this workaround: some operations are performed using temporarily elevated privileges (i.e. sudo mode), and in that case the language of the admin user will be used instead. This might be suitable for most companies where all employees speak the same language, but large international companies should make sure the admin language is set to a common language that everyone can understand (e.g. english).
Note: The workflow engine will still not propagate the context, because that requires a big refactoring and carries major risks, and it would be deprecated very soon anyway, when the new OpenERP API is implemented [3]. There is also no reason to propagate context except for translations, because the workflow itself should not depend on the context: it should operate exclusively based on the state of the documents - and should always fulfill the same 'contract'. So if translations work, there is no need to propagate the context anymore. This is why we can consider the bug fixed. Thanks for your patience! [1] server revno 3627 revision-id: [email protected] [2] server revno 4226 revision-id: [email protected] [3] the new ORM API that was introduced during OpenERP Open Days 2012 in Brussels ** Changed in: openobject-server Status: Confirmed => Fix Released -- You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Server. https://bugs.launchpad.net/bugs/434266 Title: Workflow doesn't propagate context and makes strings untranslatable Status in OpenERP Server: Fix Released Bug description: None of the functions of the workflow service accept (and thus propagate) the context. This means that when an exception is risen (for example in action_move_create() in account/invoice.py) it isn't translated. This is not a corner case, for example, it's usual to get a message when the user tries to validate a provider invoice in which totals differ. I may work on that, but need to know whether the patch will be accepted and for which version it'd be applied. To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-server/+bug/434266/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

