Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1017 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
déc. 24
1056
0
sept. 24
974
3
juil. 25
1411
1
juin 25
1344
2
mai 25
1389