Merge lp://qastaging/~savoirfairelinux-openerp/openerp-hr/unique_code into lp://qastaging/openerp-hr
Proposed by
Sandy Carter (http://www.savoirfairelinux.com)
Status: | Merged |
---|---|
Merged at revision: | 74 |
Proposed branch: | lp://qastaging/~savoirfairelinux-openerp/openerp-hr/unique_code |
Merge into: | lp://qastaging/openerp-hr |
Diff against target: |
139 lines (+121/-0) 3 files modified
hr_department_sequence/hr_department.py (+17/-0) hr_department_sequence/i18n/fr.po (+52/-0) hr_department_sequence/i18n/hr_department_sequence.pot (+52/-0) |
To merge this branch: | bzr merge lp://qastaging/~savoirfairelinux-openerp/openerp-hr/unique_code |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Reis | lgtm | Approve | |
Maxime Chambreuil (http://www.savoirfairelinux.com) | code review | Approve | |
HR Core Editors | Pending | ||
Review via email:
|
Description of the change
Added a unique constraint for department codes per company.
Added name_search and name_get as '[CODE] Department name'
Added french locale
To post a comment you must log in.
Hello Sandy,
Since you're at it, you could also add the generic .pot file, to make this translatable.
Also, I wouldn't like to have the "name_get" changes here.
I suggest that to be a separate module, so that people can choose to use it or not.
And it should implement that both on "name_get" and "name_search".
I did an implementation for that, and use it in production, doing that both for Departments and Employees. See the "hr_refcodes" ad https:/ /code.launchpad .net/~dreis- pt/reis- openerp- addons/ 7.0
Arguably, it could be split in two modules.
(And you can find there also modules to display/search Customer and Contract codes).