Business document views

Business applications are often systems of record—for products in a warehouse, invoices in an accounting department, and many more. Most of the recorded data can be represented as a paper document. For a more intuitive user interface, form views can mimic these paper documents. For example, in our app, we can think of a To-Do Task as something that has a simple paper form to fill out. We will provide a form view that follows this design.

To add a view XML with the basic skeleton of a business document view, we should edit the views/todo_views.xml file and add it to the top:

<record id="view_form_todo_task_ui" model="ir.ui.view"> <field name="model">todo.task</field> <field name="priority">15</field> <field name="arch" ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.