sf-采购询价单【上传合同】按钮展示条件修改

This commit is contained in:
mgw
2024-12-30 10:01:43 +08:00
parent 9330be3753
commit 993d720c40

View File

@@ -16,7 +16,7 @@
<xpath expr="//header/button[@name='action_rfq_send'][1]" position="before"> <xpath expr="//header/button[@name='action_rfq_send'][1]" position="before">
<field name="validation_status" invisible="1"/> <field name="validation_status" invisible="1"/>
<field name="is_upload_contract_file" invisible="1"/> <field name="is_upload_contract_file" invisible="1"/>
<button name="upload_contract_file" string="上传合同" type="object" class="oe_highlight" attrs="{'invisible': ['|', ('validation_status', '!=', 'no'), ('is_upload_contract_file', '=', True)]}"/> <button name="upload_contract_file" string="上传合同" type="object" class="oe_highlight" attrs="{'invisible': ['|', '|', ('validation_status', '!=', 'no'), ('is_upload_contract_file', '=', True), ('state', 'not in', ['draft', 'sent'])]}"/>]}"/>
<button name="delete_contract_file" string="删除合同" type="object" class="oe_highlight" attrs="{'invisible': ['|', ('validation_status', '!=', 'no'), ('is_upload_contract_file', '=', False)]}"/> <button name="delete_contract_file" string="删除合同" type="object" class="oe_highlight" attrs="{'invisible': ['|', ('validation_status', '!=', 'no'), ('is_upload_contract_file', '=', False)]}"/>
</xpath> </xpath>
<xpath expr="//notebook/page[1]" position="before"> <xpath expr="//notebook/page[1]" position="before">