Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to set a snippet option as the default option ?

By
PY
on 2/26/16, 11:59 AM 299 views

I'm building snippet options, and I can't find anywhere how to activate a snippet option by default.

0
PY
On 3/4/16, 9:25 AM

Ok, so it seems that to set a default snippet option, you have to let its `data-select_class` empty.

Here's an example:

<div data-selector="section" data-js="snippet_foobar">
    <li class="dropdown-submenu">
        <a href="#">Foobar</a>
        <ul class="dropdown-menu">
            <li data-select_class="opt-foo">
                <a>Foo</a>
            </li>
            <li data-select_class="opt-bar">
                <a>Bar</a>
            </li>
            <li data-select_class="">
                <a>When visible</a>
            </li>
        </ul>
    </li>
</div>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/26/16, 11:59 AM
Seen: 299 times
Last updated: 3/4/16, 9:25 AM