-
-
Notifications
You must be signed in to change notification settings - Fork 163
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 l10n_ch_hr_payroll. #66
Conversation
############################################################################## | ||
|
||
import hr_contract | ||
import hr_employee |
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.
please
from . import hr_contract
from . import hr_employee
Thanks @open-net-sarl
As pointed out by @nbessi in mailing list, do you plan to add any automated tests? |
Add l10n_ch_hr_payroll to readme.
'lpp_rate': fields.float('LPP Rate', digits_compute=dp.get_precision('Payroll Rate')), | ||
} | ||
|
||
hr_contract() |
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.
This line can be removed. No need to call model() anymore.
Hello @open-net-sarl Welcome on OCA. I added some inline comments to comply with our coding conventions, we tend to be rigorous as it ease us the work to maintain now nearly 500k of line of code of the whole OCA community base code. |
… into 8.0 For add the change in main readme.
yvaucher, eLBati, I apply your requests. |
@open-net-sarl still 2 PEP8 errors pointed out by travis: https://travis-ci.org/OCA/l10n-switzerland/jobs/42311237 And a little tip about git, to update your branch with upstream, you can use:
Instead of doing merge. Then you can push here by doing a |
* Add LPP range to contract | ||
|
||
**For functionnal information:** | ||
http://ur1.ca/ir5ou |
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.
It is ok with OCA @jgrandguillaume ? also link in page does not point to swiss localization
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.
I think basically all information should be in README. External links could be used for reference.
At least it should warn this link is french only ?
Thought I am concerned about having all module README linking to external pages. The user who search for modules will surely want more information when reading README and not being redirected to any other website.
Plus it would be tempting for every one to put a link to make some advertisement this could create a link war nightmare in each modules.
Nevertheless, I think it's ok to have additional link if the README itself provides enough info.
More opinions on this from community would be welcome.
Thanks for the works there is still flake8 issues, and such a module certainly deserve some test yaml or unittest. Regards |
@fclementic2c @lucmaurer I would greatly appreciate a functional review from your side. |
* Add LPP range to contract | ||
|
||
**For functionnal information:** | ||
http://ur1.ca/ir5ou |
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.
I'm concerned about this link, this is french only documentation.
The README.rst deserve at least a better english explaination for our neightbour beyond the Röstigraben.
@yvaucher: The 2 PEP8 are fixed. About your command tofetch and rebase, by 'origin' you mean OCA repo? |
@open-net-sarl yes rebase must be done on master 8.0 branch. It was a guess that your origin was OCA repo. It would also work on top of you own repo if you synced it with OCA repo. |
I have seen your work about payroll and I think is a good platform to start improvement. About "LPP " why you use rate and not a fixed amount? In my experience the most of my customer used this option. In the next weeks/months I want to test and give you a feedback. |
Hello, Thanks for your input. We choose to have 'LPP' as a rate because we want to be able to adjust to variable salary amount. For the 'Impôt à la source', we are thinking to add another rate, next to the 'LPP' rate and a rule. Would it fit your experience ? Cordiales salutations Eberhard J-A Open Net Sàrl ----- Mail original -----
|
About "LPP" I think that is convenient have rate and fix amount. Normally the amount of salary to calculate the lpp amount is fix the start of the current year (in my experience). |
Hello, Actual code looks good to me, but there is no tests available in the module. That is generally a no go for commiting addons on serie 8.0 in OCA projects. Can you please add some YAML or unit tests on the module. Until there it will probably be a ✋ to commit. Regards Nicolas |
@nbessi I agree tests are almost every time needed but think for tests it's ok there: I see no python logic to test. Just few field are added. It could be useful to understand how it works but if enough documentation is provided it will be ok. For me it's a 👍 for code. Still waiting on someone feed back on functional testing and an answer on #66 (comment). |
@yvaucher I acknowledge your point, but we may import faulty data that may cause wrong output. We are not importing bank or zip definitions here. The data set is more complex and sensitive. Regards Nicolas |
Hello, We add extra fields and pre formatted salary rules, so I don't see the uses of a YAML test The salary rules has to be put together in a salary structure by the user, not by the program. |
@open-net-sarl, it is OK for me. 👍 As soon we have a functional review it will be merged. Regards Nicolas |
Hi, Thanks for the contribs ! We do have tested it and it works. I give my 👍 Regards, Joël |
Add l10n_ch_hr_payroll.
Hello @open-net-sarl after my short test you have seen that you have configured AVS company contributor double of employ but I think is a mistake. Normally the company contributor are the same of employ (all my customer HR software have this configuration). In your http://ur1.ca/ir5ou you talk about "Impôt à la source" in "montant fixè". Why? I think in better use some formula and table. In Ticino "Impôt à la source" are on years base (not montly) so is very hard for end user calculate every month the new "montant". Work for other test. Regards, Stefano |
Hello @stevech091 your question was reported in issue #74. Regards Nicolas |
Add l10n_ch_hr_payroll.
fix script logging
Add some minor changes, based on pull request CompassionCH#66 comments. Some changes in copyright Fix 2 pep8 errors. Fix error in big comment header. Remove description from l10n_ch_hr_payroll/__openerp__.py file. Add license key in __openerp__.py Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. Restarting 'l10n_ch_payroll' from a cleaner state Corrected: removed trailing blank line at the end of 'models/hr_contract.py' Restaured: the content of __openerp__.py, lots during the last git rebase. Corrected: the contributors lists and the link to the corresponding website page explaining the details. OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] prefix versions with 8.0 [MIG] Make modules uninstallable Module ported to v8 Modify AM_C category Change module name in __init__.py Fix README wrong module name Short header on __init__.py, hr_contract.py, hr_employee.py OCA Transbot updated translations from Transifex Add two more rules for family allocation - ALFA_E_R - ALFA_F_R Add missing view to __openerp__.py Fix version format Fix author name OCA Transbot updated translations from Transifex
Add some minor changes, based on pull request CompassionCH#66 comments. Some changes in copyright Fix 2 pep8 errors. Fix error in big comment header. Remove description from l10n_ch_hr_payroll/__openerp__.py file. Add license key in __openerp__.py Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. Restarting 'l10n_ch_payroll' from a cleaner state Corrected: removed trailing blank line at the end of 'models/hr_contract.py' Restaured: the content of __openerp__.py, lots during the last git rebase. Corrected: the contributors lists and the link to the corresponding website page explaining the details. OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] prefix versions with 8.0 [MIG] Make modules uninstallable Module ported to v8 Modify AM_C category Change module name in __init__.py Fix README wrong module name Short header on __init__.py, hr_contract.py, hr_employee.py OCA Transbot updated translations from Transifex Add two more rules for family allocation - ALFA_E_R - ALFA_F_R Add missing view to __openerp__.py Fix version format Fix author name OCA Transbot updated translations from Transifex
Add some minor changes, based on pull request #66 comments. Some changes in copyright Fix 2 pep8 errors. Fix error in big comment header. Remove description from l10n_ch_hr_payroll/__openerp__.py file. Add license key in __openerp__.py Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. Restarting 'l10n_ch_payroll' from a cleaner state Corrected: removed trailing blank line at the end of 'models/hr_contract.py' Restaured: the content of __openerp__.py, lots during the last git rebase. Corrected: the contributors lists and the link to the corresponding website page explaining the details. OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] prefix versions with 8.0 [MIG] Make modules uninstallable Module ported to v8 Modify AM_C category Change module name in __init__.py Fix README wrong module name Short header on __init__.py, hr_contract.py, hr_employee.py OCA Transbot updated translations from Transifex Add two more rules for family allocation - ALFA_E_R - ALFA_F_R Add missing view to __openerp__.py Fix version format Fix author name OCA Transbot updated translations from Transifex
…oice BIZ-1508: Fix: Show top comments on account invoice
Add some minor changes, based on pull request OCA#66 comments. Some changes in copyright Fix 2 pep8 errors. Fix error in big comment header. Remove description from l10n_ch_hr_payroll/__openerp__.py file. Add license key in __openerp__.py Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. Restarting 'l10n_ch_payroll' from a cleaner state Corrected: removed trailing blank line at the end of 'models/hr_contract.py' Restaured: the content of __openerp__.py, lots during the last git rebase. Corrected: the contributors lists and the link to the corresponding website page explaining the details. OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] prefix versions with 8.0 [MIG] Make modules uninstallable Module ported to v8 Modify AM_C category Change module name in __init__.py Fix README wrong module name Short header on __init__.py, hr_contract.py, hr_employee.py OCA Transbot updated translations from Transifex Add two more rules for family allocation - ALFA_E_R - ALFA_F_R Add missing view to __openerp__.py Fix version format Fix author name OCA Transbot updated translations from Transifex
Add some minor changes, based on pull request OCA#66 comments. Some changes in copyright Fix 2 pep8 errors. Fix error in big comment header. Remove description from l10n_ch_hr_payroll/__openerp__.py file. Add license key in __openerp__.py Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. Restarting 'l10n_ch_payroll' from a cleaner state Corrected: removed trailing blank line at the end of 'models/hr_contract.py' Restaured: the content of __openerp__.py, lots during the last git rebase. Corrected: the contributors lists and the link to the corresponding website page explaining the details. OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex [UPD] prefix versions with 8.0 [MIG] Make modules uninstallable Module ported to v8 Modify AM_C category Change module name in __init__.py Fix README wrong module name Short header on __init__.py, hr_contract.py, hr_employee.py OCA Transbot updated translations from Transifex Add two more rules for family allocation - ALFA_E_R - ALFA_F_R Add missing view to __openerp__.py Fix version format Fix author name OCA Transbot updated translations from Transifex
Swizerland Payroll Rules for Odoo.
Features list :