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

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Dec 24
1059
0
Sep 24
977
3
Jul 25
1415
1
Jun 25
1358
2
May 25
1392