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

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> 
主站蜘蛛池模板: 普安县| 栾川县| 太原市| 涿鹿县| 息烽县| 囊谦县| 阳新县| 彩票| 西吉县| 化隆| 蒙阴县| 高青县| 邢台县| 竹山县| 屯门区| 无棣县| 高州市| 焉耆| 安国市| 开封市| 安阳县| 海丰县| 都江堰市| 泰来县| 鹤峰县| 德昌县| 巴中市| 浦县| 措勤县| 离岛区| 麻栗坡县| 土默特左旗| 桑植县| 阳新县| 茌平县| 昌乐县| 宿松县| 宝坻区| 阿拉善左旗| 呼图壁县| 贵定县|