mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Hide create contract button as other buttons
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
<button name="action_create_contract"
|
<button name="action_create_contract"
|
||||||
string="Create Contracts"
|
string="Create Contracts"
|
||||||
type="object"
|
type="object"
|
||||||
class="oe_highlight" attrs="{'invisible': [('need_contract_creation', '=', False)]}"/>
|
class="oe_highlight" attrs="{'invisible': ['|',('need_contract_creation', '=', False), ('state', '=', 'done')]}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[@name='button_box']" position="inside">
|
<xpath expr="//div[@name='button_box']" position="inside">
|
||||||
<button name="action_show_contracts"
|
<button name="action_show_contracts"
|
||||||
|
|||||||
Reference in New Issue
Block a user