Defining document-style forms
In this recipe, we’ll review some design guidelines in order to present a uniform user experience.
How to do it...
- Start your form with a
header
element:<header> Â Â Â Â <button name="make_available" string="Make Available" type="object"/> Â Â Â Â <button name="make_closed"Â Â string="Make Closed" type="object"/> Â Â Â Â <button type="action" name="%(my_hostel.hostel_room_category_action)d"Â Â Â Â Â Â Â Â string="Open Hotel Room Category" /> Â Â Â Â <field name="state" widget="statusbar"/> </header>
- Add a
sheet
element for content:<sheet>
- Put in the
stat
button, which will be used to show totalHostel Room
and will redirect to hostel room:<div class="oe_button_box"...