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
headerelement:<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
sheetelement for content:<sheet>
- Put in the
statbutton, which will be used to show totalHostel Roomand will redirect to hostel room:<div class="oe_button_box"...