Odoo Aide

5 Answers
Nicholas Linn
07/03/2013 10:51

Okay found this out for myself under the example above, the following conditional statement will work assuming the rule name is EI:

result = payslip.sum('EI','2013-01-01',' 2013-12-31') > -891.12

Still would be nice not to have to change the formula every year. Any ideas?

Bit of a hack but you can use the contract start and end date to define the fiscal year:

result = payslip.sum('EI',contract.date_start,contract.date_end) > -891.12


Mustufa Rangwala (mra)

--Mustufa Rangwala (mra)--
| 2 1 4
Ahmedabad, Inde
--Mustufa Rangwala (mra)--

- Around 7+ years of strong experience in Odoo (Formerly OpenERP) which is world's largest Open Source Business Applications driven by CEO Fabien Pinckaers. - Played key role in developing and maintaining various Odoo Product modules and integrating them on Open Source ERP Environment. - Experience on Scrum methodology for project management - Experience in Team Building - Quick Start Implementations. - Worked on almost all versions (4.0, 5.0, 6.0, 6.1, 7.0, SAAS, Trunk(8.0)...) of Odoo (Formerly OpenERP) . Specialities: Odoo Business Process And OpenERP Implementation. Odoo Application Support and Maintenance. Odoo Technical & Functional Training. Business Process Mapping & Gap Analysis (Functional and Technical Analysis)

Mustufa Rangwala (mra)
05/03/2013 03:33

You can do analysis on Payslip lines with by grouping on contribution register and employee.. Or you have to go to Payroll Register report.

Nicholas Linn
06/03/2013 17:02

Can you give me a bit more details on this within the context of the payroll rules?

Mustufa Rangwala (mra)
07/03/2013 01:15

Yes, We can link Contribution register on Payroll/Salary rules which is going to be Payslip Lines once you prepare payslip for your employee... For eg. PF contribution: We will be having two different salary rules for PF deduction for employee one for Employee deduction and second for Employer deduction .. For employer deduction PF salary rules you can link or refer already create contribution register "PF Comapany Contribution" on it.. So all related payslip lines encoded in payslips will be visible on specific register..

David Dufresne
25/03/2015 21:30

This issue is solved with module hr_salary_rule_variable on https://github.com/OCA/hr/tree/7.0. Salary rules point on variables that change over the time. The whole salary structure for Canada is implemented and is currently in a PR to OCA: https://github.com/OCA/l10n-canada/pull/43. Reviews would be very appreciated.

Poser une question
Keep Informed
2 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now