Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Where is the code to manage this « save » button?

Pascal Tremblay
on 8/18/15, 9:21 AM 640 views

Hello all,

when I click on « edit » on my frontend, I get this window « Select a media ».

Nothing happens when I click on « save ». Where is the code to manage the click on this « save » button? 

Here is the code for this window :

<templates id="template" xml:space="preserve">

<t t-name="website.editorbar">


<div class="modal-footer">

<button type="button" class="btn btn-primary save">Saveasedrfsd</button>

<button type="button" class="btn hidden wait" disabled="disabled"/>



Wong Wai Jeat
On 8/18/15, 1:17 PM

The code is in website.editor.js file. The code are trigger in javascript..

Look for template: 'website.editor.dialog.media', the save function is trigger in there.

Nothing happen might be because your browser is blocking javascript from running.

thanks a lot. will try it this afternoon.

Pascal Tremblay
on 8/18/15, 1:20 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 8/18/15, 9:21 AM
Seen: 640 times
Last updated: 8/18/15, 1:17 PM