62 lines
3.7 KiB
XML
62 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="view_room_booking_form" model="ir.ui.view">
|
|
<field name="name">room.booking.form</field>
|
|
<field name="model">room.booking</field>
|
|
<field name="inherit_id" ref="room.room_booking_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='is_notice']" position="before">
|
|
<field name="is_issue" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='meeting_place']" position="after">
|
|
<field name="number_of_meetings"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='meeting_type_id']" position="after">
|
|
<field name="minutes_id" invisible="not minutes_id"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='sync_wechat_room']" position="after">
|
|
<button name="bottom_meeting_approval" string="会议纪要" type="object" class="oe_highlight" invisible="not work_end"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//page[@name='sign']" position="before">
|
|
<page string="关联议题" invisible="not is_issue">
|
|
<group>
|
|
<field name="employee_ids2" string="复制人员" widget="many2many_tags"/>
|
|
</group>
|
|
<field name="issue_meeting_line_ids">
|
|
<tree editable="bottom">
|
|
<button name="copy_line" type="object" string="复制" class="oe_highlight"/>
|
|
<button name="open_record" type="object" string="详情" class="oe_highlight"/>
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="meeting_booking_id" column_invisible="1"/>
|
|
<!-- 议题标题列:列宽 + 换行双保险
|
|
说明:Odoo list 视图只有同时配 options + width 才把 width 当作绝对列宽(第 1965 行):
|
|
https://github.com/odoo/odoo/blob/17.0/addons/web/static/src/views/list/list_renderer.js
|
|
因此给议题字段同时配 options + width 来锁列宽;
|
|
CSS 再用 widget 独有的类名加 white-space 换行(不依赖 display:block,避免撑高单元格)。 -->
|
|
<field name="issue_library_id"
|
|
class="o_agenda_title_wrap"
|
|
options="{'width': '320px'}"
|
|
width="320px"
|
|
widget="issue_m2o_confirm_create"/>
|
|
<field name="employee_id" options="{'no_create': True}"/>
|
|
<field name="attendees_ids" widget="many2many_tags" options="{'no_create': True}"/>
|
|
<field name="users_role_group_ids" widget="many2many_tags" options="{'no_create': True}"/>
|
|
<field name="designated_person_ids" widget="many2many_tags" column_invisible="1"/>
|
|
<field name="is_sanda"/>
|
|
<field name="decision_results"/>
|
|
<field name="decision_details" class="o_agenda_title_wrap"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="issue_meeting_action" model="ir.actions.act_window">
|
|
<field name="name">议题相关会议</field>
|
|
<field name="res_model">room.booking</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">[('is_issue','=',True), ('is_company','=',True)]</field>
|
|
</record>
|
|
</odoo>
|