Merge lp://staging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade into lp://staging/openerp-hr

Status: Merged
Merged at revision: 73
Proposed branch: lp://staging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade
Merge into: lp://staging/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://staging/~savoirfairelinux-openerp/openerp-hr/department_parent_cascade
Reviewer Review Type Date Requested Status
Daniel Reis Approve
Maxime Chambreuil (http://www.savoirfairelinux.com) code review Approve
Review via email: mp+196199@code.staging.launchpad.net

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_sequence, error does not appear with hr.

To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve (code review)
Revision history for this message
Daniel Reis (dreis-pt) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.