Merge lp:~openerp-dev/openobject-addons/7.0-opw-590710-nep into lp:openobject-addons/7.0
Proposed by
Nehal Panchal (OpenERP)
Status: | Work in progress |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-590710-nep |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
11 lines (+1/-0) 1 file modified
account/account.py (+1/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-590710-nep |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Needs Fixing | ||
Review via email: mp+158551@code.launchpad.net |
Description of the change
Hello,
While validating the Refund invoice which has different company for invoice line and account or for invoice line and period, validate error message appears in partner's language. This message should be in the user's language.
This fixes the issue.
Thanks
To post a comment you must log in.
Unmerged revisions
- 9012. By Nehal Panchal (OpenERP)
-
[FIX] account : while validating Customer refund,Validate error should display in user's language
Hello,
Your fix do solve the problem, but hides the actual root cause, which was introduced at 5936.4.7 <email address hidden> which sets the invoice's partner language in the context instead of the user language as there is no meaning in setting the partner language here.
So as a root fix you need to change the context setting in account/ account_ invoice. py in def action_move_create @line 910 * ctx.update({'lang': inv.partner_ id.lang} )* replace this by the language of the current user as you did here. This way the correct lang will be passed in the subsequent calls throughout the flow.
Thanks,
Naresh Soni,
OpenERP Enterprise Services