xar
December 29, 2018, 10:35am
1
Hello !
When a one2many field is displayed in a form, witch attribute I should use to explicitly ask the client to render a view among the several defined for a same model ?
So far, I can only control witch type of view is displayed with the attribute ‘mode’.
Thank you for your help.
pokoli
(Sergi Almacellas Abellana)
December 29, 2018, 11:02am
2
xar:
When a one2many field is displayed in a form, witch attribute I should use to explicitly ask the client to render a view among the several defined for a same model ?
So far, I can only control witch type of view is displayed with the attribute ‘mode’.
You should use theview_ids attribute of the field in order to define the ids of the views to be used.
You use the xml id (module.xml_record_id) in order to reference a view loaded from a module
xar
December 29, 2018, 12:00pm
3
Herr, I completely missed this attribute.
Sorry for this dumb question. I souldn’t be allowed to post any question until 2019…
pokoli
(Sergi Almacellas Abellana)
December 29, 2018, 12:12pm
4
Don’t worry, we are here to help!
Just make the response as solution so the topic will be closed automatically
2 Likes