【odoo12】form view
作者:互联网
<div class="oe_button_box" name="button_box"> <button name="toggle_active" type="object" groups="hr.group_hr_user" class="oe_stat_button" icon="fa-archive"> <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> </button> </div> <div id="o_employee_container"> <div id="o_employee_main"> <field name="image" widget='image' class="oe_avatar" options='{"preview_image":"image_medium"}'/> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1> <field name="name" placeholder="Employee's Name" required="True"/> </h1> </div> <field name="category_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="e.g. Part Time" groups="hr.group_hr_user"/> <notebook> <page name="public" string="Work Information"> <field name="notes" placeholder="Other Information ..." colspan="4"/> </page>
标签:odoo12,form,view 来源: https://www.cnblogs.com/xushuotec/p/13587594.html