|
@ -33,11 +33,11 @@ odoo.define('pos_backend_partner.partner_pos', function (require) { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Bind customer button in main screen
|
|
|
ProductScreenWidget.ActionpadWidget.include({ |
|
|
ProductScreenWidget.ActionpadWidget.include({ |
|
|
init: function(parent, options) { |
|
|
init: function(parent, options) { |
|
|
this._super(parent, options); |
|
|
this._super(parent, options); |
|
|
pos_instance = this.pos; |
|
|
pos_instance = this.pos; |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
renderElement: function() { |
|
|
renderElement: function() { |
|
|
var self = this; |
|
|
var self = this; |
|
@ -49,6 +49,17 @@ odoo.define('pos_backend_partner.partner_pos', function (require) { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Bind customer button in payement screen
|
|
|
|
|
|
ProductScreenWidget.PaymentScreenWidget.include({ |
|
|
|
|
|
init: function(parent, options) { |
|
|
|
|
|
this._super(parent, options); |
|
|
|
|
|
pos_instance = this.pos; |
|
|
|
|
|
}, |
|
|
|
|
|
click_set_customer: function() { |
|
|
|
|
|
open_backend(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
tools.callbacks['partner.partner_selected'] = set_client; |
|
|
tools.callbacks['partner.partner_selected'] = set_client; |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|