Merge PR #383 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-04-24 13:21:01 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
# Copyright 2021 Tecnativa - David Vidal
# Copyright 2024 Michael Tietz (MT Software) <mtietz@mt-software.de>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
from odoo.tools import float_compare
@@ -16,7 +17,8 @@ class AccountMove(models.Model):
if lines:
return lines.sudo().filtered(
lambda r: (
r.rma_id.phantom_bom_product
not r.rma_id.phantom_bom_product
or r.rma_id.phantom_bom_product
and float_compare(r.quantity, r.rma_id.kit_qty, precision) < 0
)
)

View File

@@ -1,3 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`__:
* David Vidal
* Michael Tietz (MT Software) <mtietz@mt-software.de>