[FIX] pos, pos_restaurant: patched order setup signature

Prior to this commit, the patched setup functions of Order did not match
the original signature.

closes odoo/odoo#140893

Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
Loukas Wets (lowe)
2023-11-04 03:25:46 +00:00
parent 03f104d184
commit df53cf7fd0
2 changed files with 2 additions and 2 deletions
@@ -4,7 +4,7 @@ import { Order } from "@point_of_sale/app/store/models";
import { patch } from "@web/core/utils/patch";
patch(Order.prototype, {
setup(options) {
setup(_defaultObj, options) {
super.setup(...arguments);
if (!options.json && this.pos.config.module_pos_hr) {
this.cashier = this.pos.get_cashier();
@@ -5,7 +5,7 @@ import { patch } from "@web/core/utils/patch";
// New orders are now associated with the current table, if any.
patch(Order.prototype, {
setup(options) {
setup(_defaultObj, options) {
super.setup(...arguments);
if (this.pos.config.module_pos_restaurant) {
if (this.defaultTableNeeded(options)) {