|
@ -124,11 +124,6 @@ Define : pos_product_template.SelectVariantPopupWidget |
|
|
module.SelectVariantPopupWidget = module.PopUpWidget.extend({ |
|
|
module.SelectVariantPopupWidget = module.PopUpWidget.extend({ |
|
|
template:'SelectVariantPopupWidget', |
|
|
template:'SelectVariantPopupWidget', |
|
|
|
|
|
|
|
|
init: function(parent, options) { |
|
|
|
|
|
this._super(parent,options); |
|
|
|
|
|
this.template_name = ''; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
start: function(){ |
|
|
start: function(){ |
|
|
var self = this; |
|
|
var self = this; |
|
|
// Define Variant Widget
|
|
|
// Define Variant Widget
|
|
@ -150,7 +145,6 @@ Define : pos_product_template.SelectVariantPopupWidget |
|
|
var template = this.pos.db.template_by_id[product_tmpl_id]; |
|
|
var template = this.pos.db.template_by_id[product_tmpl_id]; |
|
|
|
|
|
|
|
|
// Display Name of Template
|
|
|
// Display Name of Template
|
|
|
this.template_name = template.name; |
|
|
|
|
|
this.$('#variant-title-name').html(template.name); |
|
|
this.$('#variant-title-name').html(template.name); |
|
|
|
|
|
|
|
|
// Render Variants
|
|
|
// Render Variants
|
|
|