[FIX]contract_count == len(active contracts)

This commit is contained in:
Oscar Soto
2020-02-05 16:09:36 +01:00
committed by Adasat
parent a39610c10a
commit f92b3a6796
2 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<button name="action_show_contracts"
type="object" icon="fa-book"
class="oe_stat_button"
attrs="{'invisible': ['|', ('is_contract', '!=', True), ('state', 'not in', ['sale', 'done'])]}">
attrs="{'invisible': ['|', '|', ('is_contract', '!=', True), ('state', 'not in', ['sale', 'done']), ('contract_count', '=', 0)]}">
<field string="Contracts"
name="contract_count"
widget="statinfo"/>