How it works...

Kanban views support grouping, which allows you to display records that have a group field in common in the same column. This is commonly used for a state or stage_id field, because it allows the user to change this field's value for a record by simply dragging it into another column. Set the default_group_by attribute on the kanban element to the name of the field you want to group by in order to make use of this functionality.

To control the behavior of kanban grouping, there are a few options available in Odoo:

  • group_create: This option is used to hide or show the Add a new column option in grouped kanban. The default value is true.
  • group_delete: This option enables or disables the Column delete option in the kanban group context menu. The default value is true.
  • group_edit: This option enables or disables the Column edit option in the kanban group context menu. The default value is true.
  • archivable: This option enables or disables the option to archive and restore the records from the kanban group context menu. This only works if the active Boolean field is present in your model.
  • quick_create: With this option, you can create records directly from the kanban view.
  • quick_create_view: By default, the quick_create option displays only the name field in kanban. But with the quick_create_view option, you can give the reference of the minimal form view to display it in kanban.
  • on_create: If you don't want to use quick_create when creating a new record and you don't want to redirect the user to the form view either, you can give the reference of the wizard so it will open the wizard on a click of the Create button.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset