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

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> 
主站蜘蛛池模板: 长岛县| 蓬安县| 竹山县| 亚东县| 德令哈市| 天水市| 东港市| 杨浦区| 依兰县| 棋牌| 修水县| 益阳市| 桐庐县| 灵寿县| 横山县| 垦利县| 陆良县| 长垣县| 青铜峡市| 阳山县| 延庆县| 宝清县| 随州市| 通河县| 芦溪县| 佛冈县| 奎屯市| 宁波市| 梨树县| 永州市| 和林格尔县| 凤翔县| 昌江| 济南市| 通城县| 北碚区| 永昌县| 平塘县| 和政县| 青海省| 日土县|