-
-
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
Port hr_employee_benefit to 8.0 #137
Conversation
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback | ||
`here <https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
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.
You let the {project_repo} {module_name}, ...
Code review: 👍 |
0fadb96
to
2ae9c0a
Compare
return res | ||
|
||
@api.multi | ||
def _filter_benefits(self, payslip, **kwargs): |
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.
@dufresnedavid Why do we need **kwargs here?
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.
@dufresnedavid If we are returning a type other than self
maybe it would be the case to declare the decaorator @api.returns()
.
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.
@joaoalf we need kwargs to enable other modules to inherit the function easily.
from .hr_employee_benefit_rate import get_amount_types | ||
|
||
|
||
class HrEmployeeBenefit(models.Model): |
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.
@dufresnedavid Just a sugestion:
class HrEmployeeBenefit(models.Model):
"""Employee Benefit"""
_name = 'hr.employee.benefit'
_description = _(__doc__)
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.
fixed
👍 |
1d60067
to
ac778a3
Compare
ac778a3
to
589ade7
Compare
👍 |
[REF] hr_employee_benefit to 8.0
[BSSFL-207] Add product responsibles and product followers
No description provided.