Backend Views

In this chapter, we will cover the following recipe:

  • Adding a menu item and window actions
  • Having an action open a specific view
  • Adding content and widgets to a form view
  • Adding buttons to forms
  • Passing parameters to forms and actions – Context
  • Defining filters on record lists – Domain
  • Defining list views
  • Defining search views
  • Displaying attachments on the side of the form view
  • Changing existing views – view inheritance
  • Defining document-style forms
  • Dynamic form elements using attrs
  • Defining embedded views
  • Defining kanban views
  • Showing kanban cards in columns according to their state
  • Defining calendar and gantt views
  • Defining graph and pivot views
  • Defining the cohort view
  • Defining the dashboard view

Throughout this chapter, we will assume that you have a database with the base add-on installed and an empty Odoo add-on module where you can add XML code from the recipes to a data file referenced in the add-on's manifest. Refer to Chapter 4, Creating Odoo Add-On Modules, for more information on how to activate changes in your add-on.

..................Content has been hidden....................

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