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.

16 lines
559 B

  1. 'use strict';
  2. odoo.define('pos_backend_partner.partner_back', function (require) {
  3. var translation = require('web.translation');
  4. var _t = translation._t;
  5. var tools = require('pos_backend_communication.back');
  6. if (tools.is_tied_to_pos()) {
  7. tools.callbacks['partner.choose'] = function() {
  8. //get focus with alert
  9. //TODO: replace with notifications
  10. alert(_t('Choose a customer'));
  11. };
  12. //tell the POS we are ready to receive
  13. tools.sendMessage({type: 'partner.ready'});
  14. }
  15. });