完善人工编程功能

This commit is contained in:
mgw
2025-02-17 15:37:30 +08:00
parent 3e9b6f808d
commit 567ea84b00
4 changed files with 131 additions and 49 deletions

View File

@@ -26,7 +26,7 @@
<!-- <attribute name="attrs">{'invisible': [('state', '!=', 'draft')]}</attribute> -->
<!-- </xpath> -->
<xpath expr="//header/button[@name='action_cancel']" position="attributes">
<attribute name="attrs">{'invisible': [('state', 'not in', ['draft', 'supply method', 'sale', 'processing'])]}</attribute>
<attribute name="attrs">{'invisible': [('state', 'not in', ['draft', 'supply method'])]}</attribute>
<attribute name="confirm">警告:取消操作将不可逆,是否确定要取消该单据?</attribute>
</xpath>
<xpath expr="//header/button[@name='action_quotation_send'][5]" position="attributes">
@@ -36,9 +36,9 @@
<xpath expr="//header/button[@name='action_cancel']" position="after">
<button
name="action_show_cancel_wizard"
string="取消(关联单据)"
string="取消"
type="object"
attrs="{'invisible': [('state', 'not in', ['draft', 'supply method', 'sale', 'processing'])]}"
attrs="{'invisible': [('state', 'not in', ['sale', 'processing'])]}"
/>
</xpath>
</field>