Skip to Content
Menu
This question has been flagged
1 Reply
3310 Views

I'm trying to extend the FormView.buttons template in v10, but it isn't loading and I can't figure out why. I ran a t-js logger inside the template, and it didn't output anything, so I'm guessing the file isn't loading correctly.

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<templates>
    <t t-extend="FormView.buttons">
        <t t-jquery=".o_form_button_edit" t-operation="prepend">
            <span class="fa fa-pencil"></span>
        </t>         <t t-jquery=".o_form_button_create" t-operation="prepend">             <span class="fa fa-plus"></span>         </t>         <t t-jquery=".o_form_button_save" t-operation="prepend">             <span class="fa fa-floppy-o"></span>         </t>         <t t-jquery=".o_form_button_cancel" t-operation="prepend">             <span class="fa fa-trash-o"></span>         </t>      </t> </templates>

And in my __manifest__.py file:

'qweb': ['static/src/xml/templates.xml'],

Thanks in advance for your help.

Avatar
Discard
Best Answer

Hello Mathews,

Have you found any answer to your problem because i'm facing the same one?

I add the file in the manifest like you but it seems not to be taking into account

I tried to add errors in the file and there is no error when i update my module


Hope you can help me

Vincent

Avatar
Discard