You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/* Copyright 2018 Tecnativa - David Vidal License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */
odoo.define('pos_order_mgmt.models', function (require) { 'use strict';
var models = require('point_of_sale.models');
var order_super = models.Order.prototype;
models.Order = models.Order.extend({ init_from_JSON: function (json) { order_super.init_from_JSON.apply(this, arguments); this.returned_order_id = json.returned_order_id; this.returned_order_reference = json.returned_order_reference; }, export_as_JSON: function () { var res = order_super.export_as_JSON.apply(this, arguments); res.returned_order_id = this.returned_order_id; res.returned_order_reference = this.returned_order_reference; return res; }, export_for_printing: function () { var res = order_super.export_for_printing.apply(this, arguments); res.returned_order_id = this.returned_order_id; res.returned_order_reference = this.returned_order_reference; return res; }, }); });
|