Odoo Community Association

Web Widget Sub View

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This addon allows us to define list subviews in our forms.

This sets a better handling of this views by adding filters and so on.

Table of contents

Usage

This is a technical module.

You can add this kind of elements by using

<widget
  name="sub_view_widget"
  model="res.partner"
  domain="[('parent_id', '=', id)]"
  context="{'search_default_parent_id': id}"
/>

It is necessary to use model. Context is recomended for setting default values and forcing specific views or default searching values.

Also, you can use:

  • view-type: To force an specific view kind. By default it uses list in desktop and kanban in mobile.
  • create-action: To force an specific action for creation (it is a xmlid)
  • open-action: The function to launch to open the record. By default, it uses get_formview_action.
  • filter: set 0 to hide the filters
  • group-by: set 0 to hide the group-by
  • favorite: set 0 to hide the favorite

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Dixmit

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/web project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.