This question has been flagged
3 Replies
8931 Views

init: function(parent) {

        this.client_options = {};

        this._super(parent);

        this.origin = undefined;

        this._current_state = null;

        this.menu_dm = new utils.DropMisordered();

        this.action_mutex = new utils.Mutex();

        this.set('title_part', {"zopenerp": "Odoo"});

    },


I want to change the {"zopenerp": "Odoo"} to {"zopenerp": "My page"}.

i want to achieve this through custom module by using JS files. Please help me out. 

Thanks in advance

Avatar
Discard
Author Best Answer

Thanks Jainesh,

But will you tell me that how to inherit Base.js file?


Avatar
Discard
Best Answer

Hi Johnson,

you have to inherit base.js and write below code in your js file.

      WebClient.include({
              init: function(parent, action, options) {
                  this._super.apply(this, arguments);
                  this.set('title_part', {"zopenerp": 'My Page'});
              }
          });
Avatar
Discard