Odoo 搜索面板显示隐藏切换



<templates id="template" xml:space="preserve">
    <t t-name="og.web.SearchPanel" t-inherit="web.SearchPanel" t-inherit-mode="extension">
        <xpath expr="//t[@t-call='web.SearchPanel.Regular']" position="after">
            <div t-ref="searchsplit" t-on-click="() => this.root.el.classList.toggle('d-none')" style="width:8px;height:100%;border-width:0 1px;display:flex;align-items:center;background:linear-gradient(to left,rgb(177 226 253), rgb(211 236 250), rgb(151 214 249))">div>
        xpath>
    t>
templates>

转自

你可能感兴趣的:(odoo17,odoo)