[MIG] purchase_usability_akretion to v18

This commit is contained in:
Alexis de Lattre
2024-12-30 00:06:13 +01:00
parent 88f6521964
commit 37fb616524
8 changed files with 22 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2022 Akretion France (http://www.akretion.com/)
# Copyright 2022-2024 Akretion France (https://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
@@ -16,6 +16,6 @@ class AccountMove(models.Model):
lines = self.env['account.move.line'].search([
('move_id', '=', self.id),
('quantity', '=', 0),
('display_type', '=', False),
('display_type', '=', 'product'),
])
lines.unlink()