Hello,
I have this button that i want to be invisible after a certain amount of days after payment date
I tried different things but no luck .
<button name="cancel" attrs="{'invisible': [('state', '=', 'draft'), ('payment_date', '<', datetime.datetime.strftime('%d-%m-%Y'))]}" groups="account.group_account_manager" string="Cancel" type="object"/>
Thank you my friend