can we use any variable or object except the ones that are predefined and if not how we can use the data from an object except the predefined ones in the python expression
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1540
Views
hello,
you can call method to an object from salary rule. for this into the salary rule select the Amount Type = "python code" and set the python code like
result = payslip.env['object.name'].method_name().
and into the method you have to do your code and return the value.
I hope this may helps you.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 24
|
397 | ||
|
0
Nov 24
|
107 | ||
|
1
Jul 24
|
4042 | ||
|
2
Jun 24
|
3470 | ||
|
1
Dec 23
|
449 |