Browse Source

Fix readme, fix indent, fix bug when choosing a customer in payment pane.

pull/227/head
hpar 7 years ago
parent
commit
79c822eab6
  1. 7
      pos_backend_partner/README.rst
  2. 13
      pos_backend_partner/static/src/js/pos_partner.js

7
pos_backend_partner/README.rst

@ -12,6 +12,13 @@ Choose a POS customer from the backend.
- Benefit from the backend features: advanced search, easy to extend views, etc.
Warning about offline mode
--------------------------
Due to design of this module, you can't choose a _named customer_ while offline but you
can still register orders with _anonymous_ user.
Configuration
=============

13
pos_backend_partner/static/src/js/pos_partner.js

@ -33,11 +33,11 @@ odoo.define('pos_backend_partner.partner_pos', function (require) {
});
}
// Bind customer button in main screen
ProductScreenWidget.ActionpadWidget.include({
init: function(parent, options) {
this._super(parent, options);
pos_instance = this.pos;
},
renderElement: function() {
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;
return {

Loading…
Cancel
Save