优化警告问题
This commit is contained in:
@@ -8,7 +8,7 @@ const { Component, xml } = owl;
|
||||
|
||||
export class BarcodeHandlerField extends Component {
|
||||
setup() {
|
||||
this.actionService = useService("action")
|
||||
this.actionService = useService("action");
|
||||
const barcode = useService("barcode");
|
||||
// this.rpc = useService("rpc");
|
||||
// useBus(barcode.bus, "barcode_scanned", this.onBarcodeScanned.bind(this));
|
||||
@@ -18,7 +18,7 @@ export class BarcodeHandlerField extends Component {
|
||||
// const { data } = await this.env.services.rpc('/web/dataset/call_kw', params);
|
||||
const response = await this.env.services.rpc('/web/dataset/call_kw', params);
|
||||
// return response
|
||||
const responseObject = JSON.parse(response)
|
||||
const responseObject = JSON.parse(response);
|
||||
return responseObject;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,7 @@ export class BarcodeHandlerField extends Component {
|
||||
} else {
|
||||
// console.error("Barcode not found or RPC call failed.");
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
BarcodeHandlerField.template = xml``;
|
||||
|
||||
Reference in New Issue
Block a user