How To Hide The Button Based On A Condition? Odoo 11 October 27, 2023 Post a Comment I want to hide the 'create invoice' button (in quotation view) based on a condition if the command line has a task/service, I tried this code but it does not work : Solution 1: You can add a style, display: none to a button to hide itSolution 2: You can write a button like the following: <button name="%(sale.action_view_sale_advance_payment_inv)d"string="Create Invoice"type="action" context="{'default_advance_payment_method': 'percentage'}" attrs="{'invisible': ['|','|', ('task_ids', '=', False), ('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/> Copy Share Post a Comment for "How To Hide The Button Based On A Condition? Odoo 11"
Post a Comment for "How To Hide The Button Based On A Condition? Odoo 11"