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

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> 
主站蜘蛛池模板: 通江县| 昌宁县| 大石桥市| 稷山县| 铜山县| 左贡县| 徐闻县| 当涂县| 怀安县| 大新县| 闵行区| 东丽区| 资兴市| 天气| 上高县| 疏勒县| 衡山县| 交城县| 北流市| 高碑店市| 德令哈市| 南投市| 凭祥市| 剑河县| 抚宁县| 怀宁县| 延津县| 鹤庆县| 环江| 平定县| 天祝| 抚顺县| 秦皇岛市| 文化| 玛沁县| 鄄城县| 开平市| 新邵县| 阿拉善盟| 巨鹿县| 定襄县|