Merge lp:~openerp-dev/openobject-addons/6.1-opw-578618-rgo into lp:openobject-addons/6.1
Status: | Approved |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | 6984 |
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-578618-rgo |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
43 lines (+12/-3) 2 files modified
hr_attendance/wizard/hr_attendance_sign_in_out.py (+4/-1) hr_timesheet/wizard/hr_timesheet_sign_in_out.py (+8/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-578618-rgo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) (community) | Approve | ||
Review via email: mp+123495@code.launchpad.net |
Description of the change
Steps to reproduce(After installing modules (hr_timesheet, hr_attendance)),
1) Install lang other than English,
2) Goto menu: `Human Resources --> Attendances`, and process `Sign in / Sign out` and `Sign in / Sign out by project` wizards,
You will find values for `state` field as `absent` and `present` which should be translated. The reason it isn't translated is, the value for `state` is fetched like `employee.state` where `employee` is browse_record for `hr.employee` object and `state` is selection field in it, so, `employee.state` will result in fetching keys of `state` field of `hr.employee` object.
This fix will enable translation for these two words by replacing keys with string.
Kindly review the fix.
Thanks.
Unmerged revisions
- 6984. By Ravi Gohil (OpenERP)
-
[FIX] hr: word 'absent' and 'present' isn't returned translated in wizards: (Maintenance Case : 578618)
Hello,
This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ trunk-opw- 578618- port-mma/ +merge/ 135144 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.
Thanks,
Naresh Soni