How To Hide The Button Based On A Condition? Odoo 11 December 25, 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')]}"/> CopyBaca JugaSuppressing Namespace Prefix In Xml FileConvert Lxml To Scrapy Xxs SelectorHow To Parse An Xml Feed Using Python? Share You may like these postsHow To Get Post Data In Django 1.3Discord.py Send_message UsageFlask And Javascript Confirm Before DeletingValue Error While Feeding In Neural Network 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"