跳至内容
菜单
此问题已终结
4 回复
10903 查看

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
5月 24
50626
1
2月 23
697
0
2月 23
724
2
9月 20
18430
1
7月 19
3596