How To Hide The Button Based On A Condition? Odoo 11 May 03, 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 JugaModify Namespaces In A Given Xml Document With LxmlElementtree In Python 2.6.2 Processing Instructions Support?Convert Lxml To Scrapy Xxs Selector Share You may like these postsPython Scrapy Dynamic Web SitesPython Module Xml.etree.elementtree Modifies Xml Namespace Keys AutomaticallyConverting An Array Dict To Xml In Python?Python's Xml.etree Getiterator Equivalent To C# 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"