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
[ADD] Module to send out timesheet notifications and subscribe the employee's manager #14
Conversation
cr, uid, 'hr_timesheet_notifications', 'subtype_confirm')[1], | ||
] | ||
|
||
if sheet.employee_id.parent_id.user_id: |
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.
Has an employee always a supervisor? On contrary, this will fail.
A little question, but the rest 👍 |
You're absolutely right, I need to check parent_id first as it is not a required field. Thanks! |
As a note, with v8, this is not needed, because it propagates False (or [] for one2many and many2many) through empty recordset, avoiding these long expressions. |
@StefanRijnhart is this PR still in WIP state? |
f80def8
to
3dd9b55
Compare
Rebased and fixed bug signalled by @pedrobaeza. Thank you for your patience! |
Thanks again 👍 |
👍 |
[ADD] Module to send out timesheet notifications and subscribe the employee's manager
No description provided.