Skip to content

Commit

Permalink
temp rebasing PR 427 (74ab89d)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Jan 29, 2024
2 parents 8f43c5f + 74ab89d commit 2119906
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stock_orderpoint_manual_update/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
],
'demo': [
],
'assets': {
'web.assets_backend': [
'stock_orderpoint_manual_update/static/src/views/**/*',
],
},
'installable': True,
'auto_install': False,
'application': False,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @odoo-module */

import { patch } from "@web/core/utils/patch";
import { StockOrderpointListController } from '@stock/views/stock_orderpoint_list_controller';

patch(StockOrderpointListController.prototype, "order patch", {
async onClickOrder() {
const resIds = await this.getSelectedResIds();
const action = await this.model.orm.call(this.props.resModel, 'action_replenish', [resIds], {
context: this.props.context,
});
if (action) {
await this.actionService.doAction(action);
}
return this.actionService.doAction('stock.action_orderpoint_replenish', {
stackPosition: 'replaceCurrentAction',
});
}
});

0 comments on commit 2119906

Please sign in to comment.