Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4600 มุมมอง

Is that possible to get current salary rule name in python code inside salary rule? I know that there are some variable exist, such as "payslip", "rules", "categories" and etc. But I need to use my current  salary rule name in my function inside salary rule? I use Odoo 12

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can use add a new char field which computes your current salary rule name and you can 

use this field value in your function.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 20
4168
0
ก.ค. 19
4550
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14885
0
ต.ค. 23
33
3
ต.ค. 23
788