完成计划权限,优化警告错误
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
<field name="status"/>
|
||||
<field name="update_person"/>
|
||||
<field name="update_time"/>
|
||||
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<button name="action_check" string="启用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/>
|
||||
<button name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/>
|
||||
<button string="查看日历"
|
||||
type="object"
|
||||
name="open_work_schedule_calendar"
|
||||
@@ -46,6 +50,8 @@
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<field name="code"/>
|
||||
<field name="day_off_ids" widget="many2many_tags" placeholder="请选择"
|
||||
options="{'no_create': True, 'no_quick_create': True}"/>
|
||||
@@ -82,6 +88,9 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="休息日" editable="bottom" delete="0">
|
||||
<field name="name"/>
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<button name="action_check" string="启用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/>
|
||||
<button name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -104,6 +113,9 @@
|
||||
<field name="start_time" placeholder="请选择"/>
|
||||
<field name="end_time" placeholder="请选择"/>
|
||||
<field name="remark"/>
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<button name="action_check" string="启用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/>
|
||||
<button name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -221,6 +233,10 @@
|
||||
<field name="status"/>
|
||||
<field name="participate_in_scheduling"/>
|
||||
<field name="name" invisible="True"/>
|
||||
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<button name="action_check" string="启用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/>
|
||||
<button name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -230,6 +246,10 @@
|
||||
<field name="model">sf.procedure.equipment.resource.setting</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="产线设备资源设置">
|
||||
<header>
|
||||
<button name="action_check" string="启用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/>
|
||||
<button name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div>
|
||||
<h1>
|
||||
@@ -238,6 +258,8 @@
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
|
||||
<field name="check_status" widget="boolean_toggle"/>
|
||||
<field name="work_center_name_id" placeholder="请选择"/>
|
||||
<field name="production_capacity"/>
|
||||
<field name="working_calendar_id" placeholder="请选择"/>
|
||||
|
||||
Reference in New Issue
Block a user