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

[MIG] hr_employee_benefit: Migration to 11.0 #385

Closed
wants to merge 16 commits into from

Conversation

novawish
Copy link

@novawish novawish commented Oct 12, 2017

This module depends on:

@novawish novawish mentioned this pull request Nov 27, 2017
71 tasks
sambarros pushed a commit to sambarros/hr that referenced this pull request Jul 26, 2018
…tic_Tag_Partner_2

[BIZ-1442][FIX] regenerate submodule branch
is the same
"""
for record in self:
if not record.category_id == record.rate_id.category_id:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its better to compare record id insted of record set

string='Employee Benefits',
readonly=True, states={'draft': [('readonly', False)]},
)
pays_per_year = fields.Integer(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you use readonly in compute field

return self.contract_id.benefit_line_ids

@api.multi
def button_compute_benefits(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can direct call the compute_benefits method in buttton I think no need to create new method.

Copy link
Member

@nikul-serpentcs nikul-serpentcs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve Code

'license': 'AGPL-3',
'category': 'Generic Modules/Human Resources',
'author': "Savoir-faire Linux, Odoo Community Association (OCA)",
'website': 'https://www.savoirfairelinux.com',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace website URL as per this

'views/hr_payslip_view.xml',
'views/hr_salary_rule_view.xml',
],
'test': [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@novawish If not need then remove it

'views/hr_salary_rule_view.xml',
],
'test': [],
'demo': [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

<field name="name">hr.employee.benefit.category.form</field>
<field name="model">hr.employee.benefit.category</field>
<field name="arch" type="xml">
<form string="Employee Benefits" version="7.0">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove version

<field name="name">hr.employee.benefit.rate.form</field>
<field name="model">hr.employee.benefit.rate</field>
<field name="arch" type="xml">
<form string="Employee Benefits Rates" version="7.0">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@oca-clabot
Copy link

Hey @novawish, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@nikul-serpentcs
Copy link
Member

@novawish Use new README by fragment system, copying https://github.com/OCA/maintainer-tools/tree/master/template/module/readme and editing or removing the needed sections. You can then run locally oca-gen-addon-readme if you have OCA/maintainer-tools installed and you want to pre-generate the README.rst file (preferred), or keep the previous README.rst file.

Mraimou pushed a commit to camptocamp/hr that referenced this pull request Mar 27, 2020
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 31, 2021
@github-actions github-actions bot closed this Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants