You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
637 B
20 lines
637 B
odoo.define('theme_autofly.car_garage', function(require){
|
|
'use strict';
|
|
const publicWidget = require('web.public.widget');
|
|
const { qweb } = require('web.core');
|
|
var ajax = require('web.ajax');
|
|
|
|
publicWidget.registry.car_garage = publicWidget.Widget.extend({
|
|
selector : '.car_garage',
|
|
/**Function for getting the garage details**/
|
|
start: function(){
|
|
var self = this;
|
|
ajax.jsonRpc('/get_garage_car', 'call', {})
|
|
.then(function (data) {
|
|
if(data){
|
|
self.$el.html(data);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|