Skip to Content
Menu
This question has been flagged
2 Replies
2558 Views

Hi everyone,

i try to inherit this qweb : website_sale.productsSearchBar.autocomplete

Here is my code :

in manifest : 'qweb': ['static/src/xml/website_search_box.xml',],

Sorry i could not add code in this forum i don't understant why!!!
Also i add it wothout < and > :

?xml version="1.0" encoding="UTF-8"?
templates xml:space="preserve"
t t-extend="website_sale.productsSearchBar.autocomplete"
t t-jquery=".px-3" t-operation="replace"
t t-set="description" t-value="widget.displayDescription and product['description_sale']"/
h6 t-attf-class="font-weight-bold #{description ? '' : 'mb-0'}" t-esc="product['s_lib_ecommerce']"/
p t-if="description" class="mb-0" t-esc="description"/
/t
/t
/templates

But nothing happend
If i add a syntax error, there is no error also i think that my file is not taking into account
I tried to change templates by template
I tried other syntax for t-jquery or with this new syntax:
t t-inherit="website_sale.productsSearchBar.autocomplete" t-inherit-mode="extension">

But nothing happen


Can somebody help me!!
Vincent

Avatar
Discard

make sure you already add xml file in manifest

'qweb': ['path/your_xml_file.xml'],

Author

Hi Imron,

Thank you but i'm not sure to understand your answer.

As i said, i added this line in manifest :  'qweb': ['static/src/xml/website_search_box.xml',],

Is there an other thing to do in manifest ?

Author Best Answer

Hello Siddharth,

Thank you for your answer but it seems not to work anymore.

But i forgot to indicate that i use Odoo in v13 (Odoo.sh)

I tried your solution and this other version:

'web.assets_qweb':[
     'static/src/xml/website_search_box.xml',
],

But nothing happen; no error when i update my module therefore i always have a syntax error in my xml file

Avatar
Discard
Best Answer

Hello JJB,

Kindly consider below reference to register qweb template in manifest file for Odoo v15.

'assets': {
    'web.assets_qweb':[
        'static/src/xml/website_search_box.xml',
    ],
}


Avatar
Discard