December 2018
Beginner to intermediate
404 pages
10h 14m
English
Much of the data recorded in a business application 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 checkout as something that has a paper form to fill out. We'll provide a form view that follows this design.
We should edit the library_checkout/views/chceckout_view.xml file and change the form view record to have the basic skeleton of a business document view:
<record id="view_form_checkout" model="ir.ui.view"> <field name="model">library.checkout</field>
<field name="arch" type="xml">
<form>
<header>
<!-- To add buttons and status widget -->
</header>
<sheet>
<!-- To add form content -->
</sheet> ...Read now
Unlock full access