去掉js中的日志
This commit is contained in:
@@ -6,8 +6,6 @@ odoo.define('sf_manufacturing.action_dispatch_confirm', function (require) {
|
|||||||
var _t = core._t;
|
var _t = core._t;
|
||||||
|
|
||||||
async function dispatch_confirm(parent, {params}) {
|
async function dispatch_confirm(parent, {params}) {
|
||||||
console.log(params, 'params')
|
|
||||||
console.log("<div>本次下发的工件数量为:" + params.workorder_count + ",是否确认?</div>", 'content')
|
|
||||||
const dialog = new Dialog(parent, {
|
const dialog = new Dialog(parent, {
|
||||||
title: "确认",
|
title: "确认",
|
||||||
$content: $('<div>').append("请确认是否仅配送" + params.workorder_count + "个工件?"),
|
$content: $('<div>').append("请确认是否仅配送" + params.workorder_count + "个工件?"),
|
||||||
@@ -30,8 +28,6 @@ odoo.define('sf_manufacturing.action_dispatch_confirm', function (require) {
|
|||||||
context: params.context,
|
context: params.context,
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res, 'res')
|
|
||||||
console.log(res.name, 'res')
|
|
||||||
parent.services.action.doAction({
|
parent.services.action.doAction({
|
||||||
'type': 'ir.actions.client',
|
'type': 'ir.actions.client',
|
||||||
'tag': 'display_notification',
|
'tag': 'display_notification',
|
||||||
|
|||||||
Reference in New Issue
Block a user