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

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> 
主站蜘蛛池模板: 阳高县| 靖西县| 余庆县| 柳河县| 樟树市| 含山县| 固镇县| 晋中市| 武穴市| 泸溪县| 朝阳区| 大关县| 三台县| 逊克县| 晋中市| 靖边县| 长春市| 溆浦县| 和顺县| 镇康县| 兰坪| 古蔺县| 阳高县| 沁阳市| 辽阳县| 原阳县| 扶风县| 广宗县| 高碑店市| 桂林市| 丹寨县| 临沂市| 夹江县| 南溪县| 阿勒泰市| 陈巴尔虎旗| 儋州市| 南充市| 信阳市| 菏泽市| 旬邑县|