[FIX] Hide create contract button as other buttons

This commit is contained in:
Sergio Lop Sanz
2020-10-20 12:05:56 +02:00
committed by GitHub
parent 4db5c90a1d
commit dff413b8a8

View File

@@ -17,7 +17,7 @@
<button name="action_create_contract"
string="Create Contracts"
type="object"
class="oe_highlight" attrs="{'invisible': [('need_contract_creation', '=', False)]}"/>
class="oe_highlight" attrs="{'invisible': ['|',('need_contract_creation', '=', False), ('state', '=', 'done')]}"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_show_contracts"