[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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user