Skip to content
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

Merged
merged 3 commits into from Sep 18, 2015

Conversation

StefanRijnhart
Copy link
Member

No description provided.

cr, uid, 'hr_timesheet_notifications', 'subtype_confirm')[1],
]

if sheet.employee_id.parent_id.user_id:
Copy link
Member

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.

@pedrobaeza
Copy link
Member

A little question, but the rest 👍

@StefanRijnhart
Copy link
Member Author

You're absolutely right, I need to check parent_id first as it is not a required field. Thanks!

@pedrobaeza
Copy link
Member

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.

@mdietrichc2c
Copy link

@StefanRijnhart is this PR still in WIP state?
Also, it would be good to rebase it on the main 7.0 branch.

@StefanRijnhart
Copy link
Member Author

Rebased and fixed bug signalled by @pedrobaeza. Thank you for your patience!

@pedrobaeza
Copy link
Member

Thanks again 👍

@max3903
Copy link
Sponsor Member

max3903 commented Sep 18, 2015

👍

@max3903 max3903 added this to the 7.0 milestone Sep 18, 2015
max3903 pushed a commit that referenced this pull request Sep 18, 2015
[ADD] Module to send out timesheet notifications and subscribe the employee's manager
@max3903 max3903 merged commit 0ea43cf into OCA:7.0 Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants