one2many_list - who to choose specifiy views

Asked by Ferdinand

from stock_picking I need to open special views
currently a default view is taken which is not the correct one.

          <field
            attrs="{'readonly':[('state','!=','draft')]}"
            colspan="4"
            name="move_lines"
            nolabel="1"
            widget="one2many_list"/>

I would need to define the name (id) from tree and form here.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Christophe CHAUVET (christophe-chauvet) said :
#1

Hi

you can use form_view_ref and tree_view_ref in the context to specify the xml_id of views

{'tree_view_ref':'view_res_partner_tree', 'form_view_ref': 'view_res_partner_form'}

available on graph, calendar or gant if necessary

Regards,

Revision history for this message
Ferdinand (office-chricar) said :
#2

thank you

Can you help with this problem?

Provide an answer of your own, or ask Ferdinand for more information if necessary.

To post a message you must log in.