官术网_书友最值得收藏!

Business document form views

The preceding section provided a basic form view, but we can make some improvements to it. For document models, Odoo has a presentation style that mimics a paper page. This form contains two elements: <header> to contain action buttons and <sheet> to contain the data fields.

We can now replace the basic <form> defined in the previous section with this one:

<form> 
  <header> 
  <!-- Buttons go here--> 
  </header> 
  <sheet> 
    <!-- Content goes here: --> 
    <group>
      <field name="name"/> 
      <field name="is_done"/>
      <field name="active" readonly="1"/>
    </group>
  </sheet> 
</form> 
主站蜘蛛池模板: 班戈县| 皋兰县| 疏勒县| 石狮市| 九江县| 繁峙县| 姚安县| 井冈山市| 抚顺县| 思南县| 清徐县| 砚山县| 河津市| 朝阳市| 上蔡县| 横山县| 东辽县| 华容县| 全州县| 新民市| 从化市| 昌黎县| 汨罗市| 慈利县| 万州区| 泾源县| 宜良县| 临夏县| 周口市| 宜宾市| 广元市| 西畴县| 越西县| 资源县| 德兴市| 镶黄旗| 泊头市| 牡丹江市| 天长市| 鄂托克旗| 舟曲县|