[FIX] rma_scrap: minor lint error

[FIX] rma_scrap: ensure scrapping serials will scrap just 1 unit & ensure scrapped quantity is always positve
[FIX] rma_scrap: scrap quantity should consider the quantity in the stock moves not the product_uom_qty
[IMP] rma_scrap: test serial case
This commit is contained in:
AaronHForgeFlow
2024-05-06 18:39:40 +02:00
committed by JasminSForgeFlow
parent fc83285b6e
commit 3c5f311f84
4 changed files with 101 additions and 5 deletions

View File

@@ -19,5 +19,6 @@ class RmaOperation(models.Model):
scrap_location_id = fields.Many2one(
comodel_name="stock.location",
string="Scrap Destination Location",
domain="[('scrap_location', '=', True), ('company_id', 'in', [company_id, False])]",
domain="[('scrap_location', '=', True),"
"('company_id', 'in', [company_id, False])]",
)