Skip to content

Commit

Permalink
Merge PR #1260 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Jan 10, 2025
2 parents 8dde00a + 6b84d97 commit 2a5ad46
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pos_order_to_sale_order/static/src/js/CreateOrderPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ odoo.define("point_of_sale.CreateOrderPopup", function (require) {
async _createSaleOrder(order_state) {
const current_order = this.env.pos.get_order();
framework.blockUI();
return await this.rpc({
model: "sale.order",
method: "create_order_from_pos",
args: [current_order.export_as_JSON(), order_state],
})
return await this.env.services
.rpc({
model: "sale.order",
method: "create_order_from_pos",
args: [current_order.export_as_JSON(), order_state],
})
.catch(function (error) {
throw error;
})
Expand Down

0 comments on commit 2a5ad46

Please sign in to comment.