We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7deb02 commit b78f15eCopy full SHA for b78f15e
sale_order_line_cancel/wizards/sale_order_line_cancel.py
@@ -2,7 +2,7 @@
2
# Copyright 2023 ACSONE SA/NV
3
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4
5
-from odoo import _, api, models
+from odoo import _, models
6
from odoo.exceptions import UserError
7
8
@@ -17,10 +17,6 @@ def _get_sale_order_line(self):
17
raise UserError(_("No sale order line ID found"))
18
return self.env[active_model].browse(active_id)
19
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
-
24
def cancel_remaining_qty(self):
25
line = self._get_sale_order_line()
26
line.cancel_remaining_qty()
0 commit comments