添加功能

This commit is contained in:
李鹏宇
2025-12-31 10:34:06 +08:00
parent ff13d78b2c
commit f0c474add3
+3 -2
View File
@@ -69,11 +69,10 @@
<field name="is_push_depart" column_invisible="1"/>
<button name="single_issue_pull" string="提交" type="object" class="oe_highlight"/>
<button name="library_push" string="推送" type="object" class="oe_highlight"/>
<button name="depart_push" string="推送" type="object" class="oe_highlight"/>
<button name="revoke" string="撤销" type="object" class="oe_highlight" invisible="issue_state == 'draft'"/>
<button name="issue_cancel" string="取消" type="object" class="oe_highlight"/>
<button name="unlink" string="删除" type="object" class="oe_highlight"/>
<button name="approval_details" string="审批详情" type="object" class="oe_highlight"/>
<button name="approval_details" string="审批详情" type="object" class="oe_highlight" invisible="issue_state == 'draft'"/>
</tree>
</field>
</record>
@@ -690,5 +689,7 @@
<field name="res_model">issue.library</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('employee_id.user_id', '=', uid)]</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_issue.view_issue_my_library_tree')})]"/>
</record>
</odoo>