-
-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0] Port HR Department Sequence #123
Conversation
👍 if travis is green |
Works but the sequence doesn't take into consideration the hierarchy. In fact, every time you play with the sequence in the department form tree view, it screws the department tree view because it adds duplicate sequence numbers. 👍
Instead of
|
Please, it's best to force-push the branch of the initial PR instead of creating a new one. |
@dreispt It is what I did. But the PR was closed when I did that |
@adrienpeiffer Hmm, you're right. Now that you mention that, I got a similar problem after force pushing a PR. |
I don't really know. I think that what happens when the PR is closed ... |
if departments.ids: | ||
return departments.name_get() | ||
return super(HrDepartment, self)\ | ||
.name_search(name=name, args=args, operator=operator, limit=limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this name_get and name_search should be optional or, even better, configurable.
But that can be a future improvement.
👍 |
====================== | ||
|
||
This module was written to allow you to order department by Parent-Child Relationship and by Sequence Number. | ||
It also adds some fields on the department like code and active. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like the "adds some fields ... like" I prefer to know what I'm installing.
I understand that all fields but those two are used for the parent-child relation. So you could simply remove that "like" and extend a bit with a "It also extends department by adding the two extra fields code and active to ease management with many departments"
I added few remarks |
Thanks @yvaucher. It's done ! |
Thanks for the fixes 👍 |
- Remove ondelete='cascade' because it can have serious consequences
- Change _order to match with sequence modification - Add children One2many on department to simplify sequence management - Add sequence handle - Hide sequence field on department form view
…alidation error whith duplicate
…nstraint declaration
fce7f88
to
251fa66
Compare
👍 I never knew untill now the widget=handle...Great. But i think we should change the pr to the department repo. It's more appropriate. |
👍 Travis errors seem unrelated to your changes |
[8.0] Port HR Department Sequence
[BSSFL-155] Bank
BSO HR Validation
Supersedes #119