Community mailing list archives

How to use t-tags in snippets

Christelle Wehbe
- 03/19/2015 05:15:57


I need to create a snippet that calls for information from I used t-tags in my snippet like for example; 

                                                 <li class="list-group-item">
                                                        <ul class="list-group-submenu">
                                                               <t t-if="res_users.company_id.partner_id.contact_address">
                                                                     <div class="row">
                                                                        <div class="col-md-4">
                                                                        <div class="col-md-8 ">
                                                                            <t t-esc="res_users.company_id.partner_id.contact_address"/><br/>

but as soon as I activate this snippet the snippet-menu under "Insert Blocks" will stop functioning and only a very tiny black row will appear.

Does anyone know how I will get this to work or if it is even possible to use t-tags in snippets? If I can't use t-tags in my snippets what is the option to replace them.