添加功能
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
'web.assets_backend': [
|
||||
'room/static/src/room_booking_gantt_view/**/*',
|
||||
"room/static/src/css/form_width.css",
|
||||
"room/static/scss/room_meeting_scss.scss",
|
||||
],
|
||||
'room.assets_room_booking': [
|
||||
# 1 Define room variables (takes priority)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
.list_room_width{
|
||||
width: 80px !important;
|
||||
max-width: 80px !important;
|
||||
}
|
||||
.list_room_width2{
|
||||
width: 120px !important;
|
||||
max-width: 120px !important;
|
||||
}
|
||||
@@ -6,8 +6,8 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="host_id"/>
|
||||
<field name="name" class="list_room_width2"/>
|
||||
<field name="host_id" class="list_room_width2"/>
|
||||
<field name="room_users_ids" widget="many2many_tags"/>
|
||||
<field name="host_user_id" column_invisible="1"/>
|
||||
<field name="users_ids" widget="many2many_tags" column_invisible="1"/>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_action_card_remind" model="ir.actions.act_window">
|
||||
<field name="name">Card Remind</field>
|
||||
<field name="name">考勤提醒表单</field>
|
||||
<field name="res_model">card.remind.form</field>
|
||||
<field name="view_mode">tree</field>
|
||||
</record>
|
||||
|
||||
@@ -352,11 +352,11 @@
|
||||
<attribute name="class">list_employee_width</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='job_id']" position="after">
|
||||
<field name="user_role_id"/>
|
||||
<field name="use_user_type"/>
|
||||
<field name="salary_group_id" column_invisible="1"/>
|
||||
<field name="user_number" optional="hide"/>
|
||||
<field name="mobile_phone" optional="hide"/>
|
||||
<field name="user_role_id"/>
|
||||
<field name="confirmation_date" optional="hide"/>
|
||||
<field name="user_number_start_time" optional="hide"/>
|
||||
<field name="nation" optional="hide"/>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
.button_width{
|
||||
width: 100px !important;
|
||||
}
|
||||
max-width: 100px !important;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<field name='remarks'/>
|
||||
<field name='users_ids' widget="many2many_tags" column_invisible="1"/>
|
||||
<field name='user_role_ids' widget="many2many_tags" column_invisible="1"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]" class="button_width"/>
|
||||
<field name='task_state' readonly="1"/>
|
||||
<button name="button_add_comment" string="提醒" type="object" class="oe_highlight" invisible="task_state == 'cancel'"/>
|
||||
<button name="button_add_comment_cancel" string="取消" type="object" class="oe_highlight" invisible="task_state == 'cancel'"/>
|
||||
|
||||
Reference in New Issue
Block a user