تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4565 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 20
4153
0
يوليو 19
4528
2
ديسمبر 23
14798
0
أكتوبر 23
33
3
أكتوبر 23
788