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

Hello,

I make a function A decorated with @api.one and then i call this function inside function B decorated @api.model but i got empty list.

Is possible to do like that?

If i call function A inside function with same decorator i got list with the values (not empty). My collagues says that the function decorated with @api.model doesn't contain ID.

My question is how to pass the ID of the current model to make function decorated with @api.one works when executed from function decorated with @api.model?

Thank you.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أبريل 24
24583
2
يناير 16
5264
3
يوليو 25
8891
1
مايو 25
1145
0
يناير 24
1824