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

In a window action what is res_model and what is src_model and what is the use of it?

<id="act_test_test"
name="Emailpayslip"
res_model=""
context="{}"
domain="[]"
src_model=""/>

الصورة الرمزية
إهمال

Hi,

What is the use of context and domain?

أفضل إجابة

Hi,
  Suppose you want to open a wizard from res.partner the src_model will be the res.partner and res_model will be the wizard model.Refer this

الصورة الرمزية
إهمال
أفضل إجابة

Hi pramod,

Please refer this link to know more about window actions and wizards  ​


الصورة الرمزية
إهمال
أفضل إجابة

 Hello @Pramod,

 * res_model : is the name of the wizard model

 * src_model : is the target module where the wizard will appear when we click the action button.

 You can follow the below link that gives all examples in detail:

\     ​https://odooforbeginnersblog.wordpress.com/2017/03/05/how-to-create-wizards-in-odoo/

 Make sure it will helpful.

 Thank you. 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
6
مايو 24
50666
1
فبراير 23
697
0
فبراير 23
724
2
سبتمبر 20
18461
1
يوليو 19
3606