mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-24 04:32:02 +02:00
Initial commit: OCA Mrp packages (117 packages)
This commit is contained in:
commit
277e84fd7a
4403 changed files with 395154 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
/** @odoo-module **/
|
||||
/*
|
||||
Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr)
|
||||
Copyright 2023 Tecnativa - Carlos Roca
|
||||
@author Iván Todorovich <ivan.todorovich@gmail.com>
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
*/
|
||||
import {EventConfiguratorRecord} from "@event_sale/js/event_configurator_model";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
patch(EventConfiguratorRecord.prototype, "event_sale_session.EventConfiguratorRecord", {
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
async save() {
|
||||
const doAction = this.model.action.doAction;
|
||||
this.model.action.doAction = (actionRequest, options = {}) => {
|
||||
actionRequest.infos.eventConfiguration.event_session_id =
|
||||
this.data.event_session_id;
|
||||
return doAction(actionRequest, options);
|
||||
};
|
||||
const res = await this._super.apply(this, arguments);
|
||||
this.model.action.doAction = doAction;
|
||||
return res;
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue