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

[l10n_ca_hr_payroll] Migration to version 8.0 #92

Closed
wants to merge 3 commits into from

Conversation

rigo1985
Copy link

[l10n_ca_hr_payroll] Migration to version 8.0

@oca-clabot
Copy link

Hey @rigo1985, 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/website.cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@ghost
Copy link

ghost commented Nov 17, 2016

@rigo1985 do you know that you can not use deduction tables in an electronic payroll system in Canada? You must implement the formulas. The deduction tables are only for people who calculate their payroll manually (in Excel for example).

@@ -1,307 +1,272 @@
# -*- coding:utf-8 -*-
##############################################################################
Copy link

Choose a reason for hiding this comment

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

@rigo1985 Hi, thanks for your contribution.

In here why you remove completely the copyright notice? Most OCA modules user the shorter format for the copyright notice but we don't remove it.

else:
res['name'] += ' / Federal'
@api.onchange('year')
def onchange_year(self):
Copy link

Choose a reason for hiding this comment

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

@rigo1985 You should start the on onchange method name with _.

weeks_of_vacation = fields.Integer(string='Number of weeks of vacation',
required=True, default=2)

#END
Copy link

Choose a reason for hiding this comment

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

@rigo1985 You need to finish the file with a \n. Also, I'm not very found of the #END comment at the end (it's a meaningless information) but it's just my personnal taste so it's not blocking.

@joaoalf
Copy link

joaoalf commented Nov 30, 2016

@rigo1985 Please, don't forget to sign the CLA.

@joaoalf
Copy link

joaoalf commented Nov 30, 2016

@rigo1985 Can you add some unittests please?

@joaoalf
Copy link

joaoalf commented Nov 30, 2016

@rigo1985 Please check also the travis result, there are some PEP8 errors in the module.

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

3 participants