跳至内容
菜单
此问题已终结
1 回复
1072 查看

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?

形象
丢弃
最佳答案

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>

形象
丢弃
相关帖文 回复 查看 活动
1
12月 24
1101
0
9月 24
1020
3
7月 25
1493
1
6月 25
1459
2
5月 25
1453