取消部分审核按钮

This commit is contained in:
mgw
2024-01-17 17:56:15 +08:00
parent 4ab1409b13
commit 6bb46186b1
2 changed files with 13 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
# 'security/rules.xml', # 'security/rules.xml',
'wizard/action_plan_some.xml', 'wizard/action_plan_some.xml',
'views/view.xml', 'views/view.xml',
'views/change_manufactuing.xml', # 'views/change_manufactuing.xml',
], ],

View File

@@ -36,21 +36,21 @@
</record> </record>
<!-- 增加权限相关的按钮 --> <!-- 增加权限相关的按钮 -->
<record id="custom_product_template_form_view" model="ir.ui.view"> <!-- <record id="custom_product_template_form_view" model="ir.ui.view"> -->
<field name="name">custom.product.template.form</field> <!-- <field name="name">custom.product.template.form</field> -->
<field name="model">product.template</field> <!-- <field name="model">product.template</field> -->
<field name="inherit_id" ref="product.product_template_form_view"/> <!-- <field name="inherit_id" ref="product.product_template_form_view"/> -->
<field name="arch" type="xml"> <!-- <field name="arch" type="xml"> -->
<xpath expr="//form//header" position="inside"> <!-- <xpath expr="//form//header" position="inside"> -->
<field name="active" invisible="1"/> <!-- <field name="active" invisible="1"/> -->
<field name="check_status" invisible="1"/> <!-- <field name="check_status" invisible="1"/> -->
<!-- <button name="archive" type="object" string="归档" icon="fa-archive" class="oe_highlight" attrs="{'invisible': [('active', '=', False)]}"/> --> <!-- <button name="archive" type="object" string="归档" icon="fa-archive" class="oe_highlight" attrs="{'invisible': [('active', '=', False)]}"/> -->
<!-- <button name="unarchive" type="object" string="取消归档" icon="fa-archive" class="oe_highlight" attrs="{'invisible': [('active', '=', True)]}"/> --> <!-- <button name="unarchive" type="object" string="取消归档" icon="fa-archive" class="oe_highlight" attrs="{'invisible': [('active', '=', True)]}"/> -->
<button name="action_check" string="审核" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', True)]}" groups="sf_base.group_plan_director"/> <!-- <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 name="action_uncheck" string="禁用" type="object" class="oe_highlight" attrs="{'invisible': [('check_status', '=', False)]}" groups="sf_base.group_plan_director"/> -->
</xpath> <!-- </xpath> -->
</field> <!-- </field> -->
</record> <!-- </record> -->
<!-- 增加权限相关的按钮 --> <!-- 增加权限相关的按钮 -->
<record id="custom_mrp_bom_form_view" model="ir.ui.view"> <record id="custom_mrp_bom_form_view" model="ir.ui.view">