调整写入编程记录的位置

This commit is contained in:
mgw
2025-01-13 16:51:25 +08:00
parent b2c6c9c27d
commit d8a816c90e
3 changed files with 118 additions and 78 deletions

View File

@@ -87,6 +87,7 @@
<field name="arch" type="xml">
<xpath expr="//header//button[last()]" position="after">
<button name="action_apply_programming" type="object" string="申请编程" class="oe_highlight"
attrs="{'invisible': ['|', ('state', 'not in', ['confirmed', 'pending_cam']), ('programming_state', '!=', '已编程')]}"
groups="sf_base.group_sf_mrp_user"/>
</xpath>
<xpath expr="//field[@name='state']" position="attributes">