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

Hi there,

I'm building  a custom app that inherits res.partner model and has a few functions defined. Now i want to call those child class functions from xml file which inherits a view and modifies a few fields. Also i want to access the value of those variables which are present inside that child class functions, how can i achieve that?

I have tried calling that function using <function> tags and also used  <span t-esc = "o.function_name"/> but both approaches ended up in throwing errors saying that function was not found in the parent view.

any help is appreciated.

Thank you

P.S: I want to access the value of the variables in the xml file inside the <xpath> tag

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 24
1744
5
يوليو 24
93190
1
ديسمبر 23
3139
1
مايو 22
3792
0
يناير 20
3007