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.

22 lines
637 B

  1. /*
  2. Copyright (C) 2017-Today: La Louve (<http://www.lalouve.net/>)
  3. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. */
  6. odoo.define('pos_price_to_weight.screens', function (require) {
  7. "use strict";
  8. var screens = require('point_of_sale.screens');
  9. screens.ScreenWidget.include({
  10. show: function(){
  11. this._super();
  12. var self = this;
  13. this.pos.barcode_reader.set_action_callback({
  14. 'price_to_weight': _.bind(self.barcode_product_action, self),
  15. });
  16. },
  17. });
  18. });