Help

0

res_model vs model in xml declarations

Avatar
Peregrin Tuk

I would like to know what's the difference of using "res_model", "src_model" and "model" in xml definitions.
Thanks!

アバター
破棄
1 回答
1
Best Answer

Hi,

res_model: It is the name of you model for representing the action window
src_model: It is the target model where the wizard will appear on the button click
model: The model to which the view created belongs to.

Regards

2 コメント
アバター
破棄
Avatar
Peregrin Tuk
-

Thank you very much.

One small doubt remains. Where you say "src_model: It is the target module where the wizard will appear on the button click", do you mean model instead of module, maybe?

Greetings

Yes, it means target model, we have updated the answer