-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] pos_order_remove_line: Migration to 16.0
- Loading branch information
Showing
8 changed files
with
35 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Copyright 2019 LevelPrime | ||
# Copyright 2023 LevelPrime | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/** @odoo-module **/ | ||
/* | ||
* Copyright 2019 LevelPrime | ||
* Copyright 2023 LevelPrime | ||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
*/ | ||
|
||
odoo.define("pos_order_remove_line.Orderline", function (require) { | ||
"use strict"; | ||
import Registries from 'point_of_sale.Registries'; | ||
import Orderline from 'point_of_sale.Orderline'; | ||
|
||
const Orderline = require("point_of_sale.Orderline"); | ||
const Registries = require("point_of_sale.Registries"); | ||
|
||
const PosOrderline = (Orderline) => | ||
class extends Orderline { | ||
removeLine() { | ||
this.props.line.set_quantity("remove"); | ||
} | ||
}; | ||
Registries.Component.extend(Orderline, PosOrderline); | ||
return Orderline; | ||
}); | ||
const PosOrderline = (Orderline) => | ||
class extends Orderline { | ||
removeLine() { | ||
this.props.line.set_quantity("remove"); | ||
} | ||
}; | ||
|
||
Registries.Component.extend(Orderline, PosOrderline); | ||
|
||
return Orderline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.