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.
22 lines
702 B
22 lines
702 B
/** @odoo-module */
|
|
|
|
import { Orderline } from 'point_of_sale.models';
|
|
import Registries from 'point_of_sale.Registries';
|
|
|
|
const PosResOrderline = Orderline => class extends Orderline {
|
|
click() {
|
|
this.showPopup("LaundryServiceTypePopup", {
|
|
title: this.env._t("Laundry Service"),
|
|
service: this.env.pos.washing_type,
|
|
pos: this.env.pos,
|
|
orderline: this.props.line,
|
|
});
|
|
}
|
|
remove_laundry() {
|
|
//Method for removing laundry
|
|
this.props.line.washingType = '';
|
|
this.props.line.washingType_id = 0.0;
|
|
}
|
|
};
|
|
// Extend Orderline with PosResOrderline
|
|
Registries.Component.extend('Orderline', PosResOrderline);
|
|
|