当前位置: 首页 > news >正文

get_views中list的arch格式

1 日历 -> 会议

<tree string="会议" sample="1" multi_edit="1"><header><button name="action_open_composer" type="object" context="{'composition_mode':'mass_mail'}" string="发送邮件"/><button name="action_send_sms" type="object" string="发送短信息"/></header><field name="name" string="主题" decoration-bf="1" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]], &quot;required&quot;: true}"/><field name="start" string="开始日期" on_change="1" modifiers="{&quot;readonly&quot;: true, &quot;required&quot;: true}"/><field name="stop" string="结束日期" on_change="1" modifiers="{&quot;readonly&quot;: true, &quot;required&quot;: true}"/><field name="user_id" widget="many2one_avatar_user" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}" can_create="true" can_write="true"/><field name="partner_ids" widget="many2many_tags" optional="show" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}" can_create="true" can_write="true"/><field name="alarm_ids" widget="many2many_tags" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}" can_create="true" can_write="true"/><field name="categ_ids" widget="many2many_tags" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}" can_create="true" can_write="true"/><field name="recurrency" optional="hide" modifiers="{&quot;readonly&quot;: true}"/><field name="privacy" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]], &quot;required&quot;: true}"/><field name="show_as" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]], &quot;required&quot;: true}"/><field name="location" optional="show" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}"/><field name="duration" widget="float_time" on_change="1" modifiers="{&quot;readonly&quot;: true}"/><field name="description" optional="hide" modifiers="{&quot;readonly&quot;: [[&quot;recurrency&quot;, &quot;=&quot;, true]]}"/><field name="allday" modifiers="{&quot;column_invisible&quot;: true}"/><field name="message_needaction" modifiers="{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}"/>
</tree>

2 联系人 -> 联系人

<tree string="联系人" sample="1" multi_edit="1"><field name="display_name" string="名称" on_change="1" modifiers="{&quot;readonly&quot;: true}"/>↵<field name="function" modifiers="{&quot;column_invisible&quot;: true}"/>↵<field name="phone" class="o_force_ltr" optional="show" on_change="1"/>↵<field name="email" optional="show" on_change="1"/>↵<field name="user_id" optional="show" widget="many2one_avatar_user" domain="[('share', '=', False)]" can_create="true" can_write="true"/>↵<field name="activity_ids" optional="show" widget="list_activity"/>↵<field name="city" optional="show"/>↵<field name="state_id" optional="hide" on_change="1" modifiers="{&quot;readonly&quot;: true}"/>↵<field name="country_id" optional="show" on_change="1" modifiers="{&quot;readonly&quot;: true}"/>↵<field name="vat" optional="hide" modifiers="{&quot;readonly&quot;: true}"/>↵<field name="category_id" optional="hide" widget="many2many_tags" options="{'color_field': 'color'}" can_create="true" can_write="true"/>↵<field name="is_company" on_change="1" modifiers="{&quot;column_invisible&quot;: true}"/>↵<field name="parent_id" on_change="1" modifiers="{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}"/>↵<field name="active" modifiers="{&quot;column_invisible&quot;: true}"/>↵
</tree>

3 项目 -> 项目

<tree decoration-muted=\"active == False\" string=\"项目\" multi_edit=\"1\" sample=\"1\" default_order=\"sequence, name, id\"><field name=\"sequence\" optional=\"show\" widget=\"handle\"/><field name=\"message_needaction\" modifiers=\"{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}\"/><field name=\"active\" modifiers=\"{&quot;column_invisible&quot;: true}\"/><field name=\"is_favorite\" nolabel=\"1\" width=\"1\" widget=\"boolean_toggle\"/><field name=\"display_name\" string=\"名称\" class=\"fw-bold\" modifiers=\"{&quot;readonly&quot;: true}\"/><field name=\"partner_id\" optional=\"show\" string=\"客户\" on_change=\"1\" can_create=\"true\" can_write=\"true\"/><field name=\"sale_line_id\" optional=\"hide\" on_change=\"1\" modifiers=\"{&quot;readonly&quot;: true}\"/><field name=\"privacy_visibility\" optional=\"hide\" modifiers=\"{&quot;required&quot;: true}\"/><field name=\"company_id\" optional=\"show\" options=\"{'no_create': True, 'no_create': True}\" modifiers=\"{&quot;required&quot;: true}\" can_create=\"true\" can_write=\"true\"/><field name=\"company_id\" modifiers=\"{&quot;required&quot;: true, &quot;column_invisible&quot;: true}\" can_create=\"true\" can_write=\"true\"/><field name=\"date_start\" string=\"开始日期\" widget=\"daterange\" options=\"{'related_end_date': 'date'}\"/><field name=\"date\" string=\"结束日期\" widget=\"daterange\" options=\"{'related_start_date': 'date_start'}\"/><field name=\"allocated_hours\" widget=\"timesheet_uom_no_toggle\" optional=\"show\" modifiers=\"{&quot;invisible&quot;: [[&quot;allocated_hours&quot;, &quot;=&quot;, 0]]}\"/><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\"/><field name=\"last_update_color\" modifiers=\"{&quot;readonly&quot;: true, &quot;column_invisible&quot;: true}\"/><field name=\"tag_ids\" widget=\"many2many_tags\" options=\"{'color_field': 'color'}\" optional=\"hide\" can_create=\"true\" can_write=\"true\"/><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}\"/>
</tree>

http://www.lryc.cn/news/158066.html

相关文章:

  • 淘宝商品销量接口API更新(总销+精准月销API)
  • Android 11编译第三弹 ADB开启ROOT权限
  • 《TCP/IP网络编程》--基于TCP实现字符串对话和文件传输
  • Feign负载均衡写法
  • OpenCV(二十八):连通域分割
  • 达梦控制台还原报错“管道失败”
  • [杂谈]-快速了解直接内存访问 (DMA)
  • java八股文面试[设计模式]——23种设计模式
  • mysql(十)mysql主从复制--主库切换
  • vue3项目的src下的各个文件夹介绍
  • 五、编译预处理
  • 应用出海,Google 分享如何让数字营销素材再上层楼
  • 酱香咖啡喝了没?用数据分析揭秘瑞幸咖啡的7500万用户增长策略
  • Grafana之魔法:揭秘数据可视化的艺术
  • c高级day2作业
  • 第3章 【MySQL】字符集和比较规则
  • 2023 年全国大学生数学建模D题目-圈养湖羊的空间利用率
  • 攻防世界-WEB-ics-05
  • typedef的四种用法
  • Rstudio开不开了怎么办?R is taking longer to start than usual
  • kubernetes 集群安装加载 br_netfilter 模块
  • CATIA Composer软件安装包分享(附安装教程)
  • 入行测试一年半的心得体会
  • Vue的props配置项
  • Python开源项目周排行 2023年第32周
  • Python实现猎人猎物优化算法(HPO)优化卷积神经网络回归模型(CNN回归算法)项目实战
  • mysql8 Found option without preceding group错误
  • uniapp 路由不要显示#
  • 算法设计与分析 | 最多约数
  • MySQL 数据库常用操作语句的总结