I know I can read the sum of all the rules in one category, like this
result = categories.CAT1+ categories.CAT2
But how do you read something like this?
result = rules.RUL1 + rules.RUL2
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I know I can read the sum of all the rules in one category, like this
result = categories.CAT1+ categories.CAT2
But how do you read something like this?
result = rules.RUL1 + rules.RUL2
This behaviour is a little counter-intuitive. While you can get the cumulative value of rule categories from the categories dictionary, the rules dictionary contains only the hr.salary.rule objects themselves. To get the computed value of a rule you have to reference it directly by code:
result = RUL1 + RUL2
It works. Thanks!
Thanks! This works.
ya it works thank u.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
1
Okt 24
|
2799 | |||
|
How to delete Confirmed Salary Slip?
Diselesaikan
|
5
Jan 24
|
17753 | ||
|
1
Mar 15
|
6639 | |||
|
Best way to include YTD totals on Payslip?
Diselesaikan
|
8
Feb 24
|
13724 | ||
|
1
Mar 15
|
5611 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.