• get_views中list的arch格式


    1 日历 -> 会议

    1. <tree string="会议" sample="1" multi_edit="1">
    2. <header>
    3. <button name="action_open_composer" type="object" context="{'composition_mode':'mass_mail'}" string="发送邮件"/>
    4. <button name="action_send_sms" type="object" string="发送短信息"/>
    5. header>
    6. <field name="name" string="主题" decoration-bf="1" modifiers="{"readonly": [["recurrency", "=", true]], "required": true}"/>
    7. <field name="start" string="开始日期" on_change="1" modifiers="{"readonly": true, "required": true}"/>
    8. <field name="stop" string="结束日期" on_change="1" modifiers="{"readonly": true, "required": true}"/>
    9. <field name="user_id" widget="many2one_avatar_user" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]]}" can_create="true" can_write="true"/>
    10. <field name="partner_ids" widget="many2many_tags" optional="show" modifiers="{"readonly": [["recurrency", "=", true]]}" can_create="true" can_write="true"/>
    11. <field name="alarm_ids" widget="many2many_tags" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]]}" can_create="true" can_write="true"/>
    12. <field name="categ_ids" widget="many2many_tags" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]]}" can_create="true" can_write="true"/>
    13. <field name="recurrency" optional="hide" modifiers="{"readonly": true}"/>
    14. <field name="privacy" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]], "required": true}"/>
    15. <field name="show_as" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]], "required": true}"/>
    16. <field name="location" optional="show" modifiers="{"readonly": [["recurrency", "=", true]]}"/>
    17. <field name="duration" widget="float_time" on_change="1" modifiers="{"readonly": true}"/>
    18. <field name="description" optional="hide" modifiers="{"readonly": [["recurrency", "=", true]]}"/>
    19. <field name="allday" modifiers="{"column_invisible": true}"/>
    20. <field name="message_needaction" modifiers="{"readonly": true, "column_invisible": true}"/>
    21. tree>

    2 联系人 -> 联系人

    1. <tree string="联系人" sample="1" multi_edit="1">
    2. <field name="display_name" string="名称" on_change="1" modifiers="{"readonly": true}"/>
    3. <field name="function" modifiers="{"column_invisible": true}"/>
    4. <field name="phone" class="o_force_ltr" optional="show" on_change="1"/>
    5. <field name="email" optional="show" on_change="1"/>
    6. <field name="user_id" optional="show" widget="many2one_avatar_user" domain="[('share', '=', False)]" can_create="true" can_write="true"/>
    7. <field name="activity_ids" optional="show" widget="list_activity"/>
    8. <field name="city" optional="show"/>
    9. <field name="state_id" optional="hide" on_change="1" modifiers="{"readonly": true}"/>
    10. <field name="country_id" optional="show" on_change="1" modifiers="{"readonly": true}"/>
    11. <field name="vat" optional="hide" modifiers="{"readonly": true}"/>
    12. <field name="category_id" optional="hide" widget="many2many_tags" options="{'color_field': 'color'}" can_create="true" can_write="true"/>
    13. <field name="is_company" on_change="1" modifiers="{"column_invisible": true}"/>
    14. <field name="parent_id" on_change="1" modifiers="{"readonly": true, "column_invisible": true}"/>
    15. <field name="active" modifiers="{"column_invisible": true}"/>
    16. tree>

    3 项目 -> 项目

    1. <tree decoration-muted=\"active == False\" string=\"项目\" multi_edit=\"1\" sample=\"1\" default_order=\"sequence, name, id\">
    2. <field name=\"sequence\" optional=\"show\" widget=\"handle\"/>
    3. <field name=\"message_needaction\" modifiers=\"{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}\"/>
    4. <field name=\"active\" modifiers=\"{&quot;column_invisible&quot;: true}\"/>
    5. <field name=\"is_favorite\" nolabel=\"1\" width=\"1\" widget=\"boolean_toggle\"/>
    6. <field name=\"display_name\" string=\"名称\" class=\"fw-bold\" modifiers=\"{&quot;readonly&quot;: true}\"/>
    7. <field name=\"partner_id\" optional=\"show\" string=\"客户\" on_change=\"1\" can_create=\"true\" can_write=\"true\"/>
    8. <field name=\"sale_line_id\" optional=\"hide\" on_change=\"1\" modifiers=\"{&quot;readonly&quot;: true}\"/>
    9. <field name=\"privacy_visibility\" optional=\"hide\" modifiers=\"{&quot;required&quot;: true}\"/>
    10. <field name=\"company_id\" optional=\"show\" options=\"{'no_create': True, 'no_create': True}\" modifiers=\"{&quot;required&quot;: true}\" can_create=\"true\" can_write=\"true\"/>
    11. <field name=\"company_id\" modifiers=\"{&quot;required&quot;: true, &quot;column_invisible&quot;: true}\" can_create=\"true\" can_write=\"true\"/>
    12. <field name=\"date_start\" string=\"开始日期\" widget=\"daterange\" options=\"{'related_end_date': 'date'}\"/>
    13. <field name=\"date\" string=\"结束日期\" widget=\"daterange\" options=\"{'related_start_date': 'date_start'}\"/>
    14. <field name=\"allocated_hours\" widget=\"timesheet_uom_no_toggle\" optional=\"show\" modifiers=\"{&quot;invisible&quot;: [[&quot;allocated_hours&quot;, &quot;=", 0]]}\"/>
    15. <field name=\"user_id\" optional=\"show\" string=\"项目管理员\" widget=\"many2one_avatar_user\" options=\"{'no_open':True, 'no_create': True, 'no_create_edit': True}\" can_create=\"true\" can_write=\"true\"/>
    16. <field name=\"last_update_color\" modifiers=\"{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}\"/>
    17. <field name=\"tag_ids\" widget=\"many2many_tags\" options=\"{'color_field': 'color'}\" optional=\"hide\" can_create=\"true\" can_write=\"true\"/>
    18. <field name=\"last_update_status\" string=\"状态\" nolabel=\"1\" optional=\"show\" widget=\"status_with_color\" options=\"{'color_field': 'last_update_color', 'hide_label': True}\" on_change=\"1\" modifiers=\"{&quot;required&quot;: true}\"/>
    19. tree>

  • 相关阅读:
    es相关知识
    (181)Verilog HDL:设计一个计数器count_clock
    postman---postman参数化
    智慧水务,水务自动化无线监控方案
    以“防方视角”观Shiro反序列化漏洞
    性能测试中如何使用RunnerGo还原混合并发场景
    Excel实战-帮业务人员做道Excel题
    SAP MIRO发票过账报错 发出数量为0
    Lecture 13 File system(文件系统)
    创建React + Ts项目
  • 原文地址:https://blog.csdn.net/xiliuhu/article/details/132723871