Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1096 Vistas

i want to inherit template this template but is typo(?) and is always give me warning for missing module name


in module web_editor/static/src/js/wysiwyg/widgets/chatgpt_alternatives_dialog.xml

t t-name="web_edior.ChatGPTAlternativesDialog"

web_editor/static/src/js/wysiwyg/widgets/chatgpt_alternatives_dialog.js

export class ChatGPTAlternativesDialog extends ChatGPTDialog {    
static template = 'web_edior.ChatGPTAlternativesDialog';                               

the warning

odoo.addons.web.controllers.binary: Parsing asset bundle website.assets_all_wysiwyg.js has failed: Module 'web_edior' not loaded or inexistent (try to inherit 'ChatGPTAlternativesDialog'), or templates of addon being loaded 'aos_dialog_translate' are misordered (template 'ChatGPTAlternativesDialogTranslate'


how can i fix this?

Avatar
Descartar
Mejor respuesta

Hi, I encountered the same issue and managed to resolve it by using a t-inherit in the template. 
Like this:

<t t-inherit="web_editor.web_edior.ChatGPTAlternativesDialog" t-inherit-mode="extension" owl="1">

    <!-- Your code -->

</t>

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 24
1129
0
sept 24
1034
3
jul 25
1685
1
jun 25
1684
2
may 25
1631