Odoo Help


How to set a snippet option as the default option ?

on 2/26/16, 11:59 AM 871 views

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

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">
            <li data-select_class="opt-bar">
            <li data-select_class="">
                <a>When visible</a>

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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