How To Hide The Button Based On A Condition? Odoo 11 March 19, 2024 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')]}"/> CopyBaca JugaOdoo: How To Search A Parent_id And Its All Child In Product.categoryHow To Prevent Duplicated Records And Only Update It?How To Get Field Values In .rml Report In Odoo? Share You may like these postsA Way To Almost Correctly Trigger A Function PeriodicallyHow To Continuously Move An Image Smoothly In Pygame?Django Mezzanine Importerror: No Module Named AppsPython Pandas: Generate Document-term Matrix From Whitespace Delimited '.dat' File 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"