Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1019 Представления

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>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 24
1059
0
сент. 24
976
3
июл. 25
1415
1
июн. 25
1353
2
мая 25
1392