修改字段名
This commit is contained in:
@@ -91,14 +91,14 @@ odoo.define('sf_demand.print_demand', function (require) {
|
|||||||
},
|
},
|
||||||
_onPrintClick(e) {
|
_onPrintClick(e) {
|
||||||
console.log(e, 'asdsadadsadasdad', this);
|
console.log(e, 'asdsadadsadasdad', this);
|
||||||
var selectedIds = this.getSelectedIds();
|
var print_ids = this.getSelectedIds();
|
||||||
|
|
||||||
console.log(selectedIds);
|
console.log(print_ids);
|
||||||
|
|
||||||
this._rpc({
|
this._rpc({
|
||||||
model: 'sf.demand.plan.print.wizard',
|
model: 'sf.demand.plan.print.wizard',
|
||||||
method: 'demand_plan_print',
|
method: 'demand_plan_print',
|
||||||
kwargs: selectedIds,
|
kwargs: print_ids,
|
||||||
// context: this.state.getContext()
|
// context: this.state.getContext()
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
self.do_notify("成功", "打印任务已发送到打印机");
|
self.do_notify("成功", "打印任务已发送到打印机");
|
||||||
|
|||||||
Reference in New Issue
Block a user