Hi i have a js in a module called odoo.define('custom1') in that i have a backbone model like below.
i need to extend the initialize function in my custom module js.I can get the "somename" by adding require("custom1") but cant access the initialize function.
odoo.define('custom1', function(require){
var exports ={}
exports.somename = Backbone.Model.extend({
initialize: function(test){ //some code }, });
return exports; });