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.
 
 
 
 

23 lines
703 B

odoo.define('barcode_action.form', function (require) {
"use strict";
var FormController = require('web.FormController');
FormController.include({
_barcodeHandleAction: function (barcode, activeBarcode) {
var record = this.model.get(this.handle);
var self = this;
return self._rpc({
model: record.data.model,
method: record.data.method,
args: [[record.data.res_id], barcode],
}).done(function (action) {
if (action){
self._barcodeStopListening();
self.do_action(action);
}
});
},
});
});