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" ...