Skip to content

Instantly share code, notes, and snippets.

@alexander-arce
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save alexander-arce/8960646 to your computer and use it in GitHub Desktop.

Select an option

Save alexander-arce/8960646 to your computer and use it in GitHub Desktop.
Explicitly use and show custom tree view in a many2many widget, using context to set reference to custom view.
<field name="pet_ids" widget="many2many" domain="[('partner_id','=',partner_id)]" mode="tree"
context="{'tree_view_ref' : 'module_name.view_custom_tree_info'}">
<tree>
<field name="name"/>
<field name="breed"/>
<field name="gender"/>
</tree>
</field>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment