Skip to content

Commit b78f15e

Browse files
[REF] sale_order_line_cancel: Remove unnecessary method from wizard
1 parent b7deb02 commit b78f15e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sale_order_line_cancel/wizards/sale_order_line_cancel.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2023 ACSONE SA/NV
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

5-
from odoo import _, api, models
5+
from odoo import _, models
66
from odoo.exceptions import UserError
77

88

@@ -17,10 +17,6 @@ def _get_sale_order_line(self):
1717
raise UserError(_("No sale order line ID found"))
1818
return self.env[active_model].browse(active_id)
1919

20-
@api.model
21-
def _get_moves_to_cancel(self, line):
22-
return line.move_ids.filtered(lambda m: m.state not in ("done", "cancel"))
23-
2420
def cancel_remaining_qty(self):
2521
line = self._get_sale_order_line()
2622
line.cancel_remaining_qty()

0 commit comments

Comments
 (0)