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.
 
 
 

43 lines
1.1 KiB

// © 2020 Le Filament (<http://www.le-filament.com>)
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
odoo.define('vracoop_pos_free_balance_V2.custo_header', function (require) {
"use strict";
var chrome = require("point_of_sale.chrome");
var PosBaseWidget = require('point_of_sale.BaseWidget');
chrome.Chrome.include({
build_widgets: function(){
this.widgets.push({
'name': 'shopname',
'widget': ShopnameWidget,
'replace': '.placeholder-ShopnameWidget'});
this._super();
},
});
var ShopnameWidget = PosBaseWidget.extend({
template: 'ShopnameWidget',
init: function(parent, options){
options = options || {};
this._super(parent,options);
},
renderElement: function(){
var self = this;
this._super();
},
get_shopname: function(){
var header_text = this.pos.get_name_header();
if(header_text){
return header_text;
}else{
return "";
}
},
});
return {
'ShopnameWidget': ShopnameWidget,
};
});