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

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. 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
6
พ.ค. 24
50643
1
ก.พ. 23
697
0
ก.พ. 23
724
2
ก.ย. 20
18437
Changes in quants in Odoo 11 , 12 แก้ไขแล้ว
1
ก.ค. 19
3600