Merge lp://qastaging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade into lp://qastaging/openerp-hr
Proposed by
Sandy Carter (http://www.savoirfairelinux.com)
Status: | Merged |
---|---|
Merged at revision: | 73 |
Proposed branch: | lp://qastaging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade |
Merge into: | lp://qastaging/openerp-hr |
Diff against target: |
11 lines (+1/-0) 1 file modified
hr_department_sequence/hr_department.py (+1/-0) |
To merge this branch: | bzr merge lp://qastaging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Reis | Approve | ||
Maxime Chambreuil (http://www.savoirfairelinux.com) | code review | Approve | |
Review via email:
|
Description of the change
Fixes Bug #1253781
The parent_id field in the hr.department object does not have an on_delete value which causes OpenERP to display the following message when loading records which specify parents through an xml:
ERROR db openerp.osv.orm: The column parent_id on object hr.department must be set as ondelete='cascade' or 'restrict'
Note: This only happens with hr_department_
To post a comment you must log in.