diff --git a/sf_demand_plan/static/src/js/print_demand.js b/sf_demand_plan/static/src/js/print_demand.js index b1ecd7e7..e66484f0 100644 --- a/sf_demand_plan/static/src/js/print_demand.js +++ b/sf_demand_plan/static/src/js/print_demand.js @@ -91,14 +91,14 @@ odoo.define('sf_demand.print_demand', function (require) { }, _onPrintClick(e) { console.log(e, 'asdsadadsadasdad', this); - var selectedIds = this.getSelectedIds(); + var print_ids = this.getSelectedIds(); - console.log(selectedIds); + console.log(print_ids); this._rpc({ model: 'sf.demand.plan.print.wizard', method: 'demand_plan_print', - kwargs: selectedIds, + kwargs: print_ids, // context: this.state.getContext() }).then(function() { self.do_notify("成功", "打印任务已发送到打印机");