[MIG] purchase_usability_akretion to v18
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user