sf-采购询价单【上传合同】按钮展示条件修改
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user