mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[15.0][FIX] rma_sale: fixup of procurement
This commit is contained in:
committed by
Florian da Costa
parent
60a9d6decb
commit
284891c09b
@@ -1055,7 +1055,7 @@ class TestRma(common.TransactionCase):
|
|||||||
rma_lines.write({"receipt_policy": "delivered"})
|
rma_lines.write({"receipt_policy": "delivered"})
|
||||||
self.assertEqual(sum(rma_lines.mapped("qty_to_receive")), 0)
|
self.assertEqual(sum(rma_lines.mapped("qty_to_receive")), 0)
|
||||||
wizard = self.rma_make_picking.with_context(
|
wizard = self.rma_make_picking.with_context(
|
||||||
{
|
**{
|
||||||
"active_ids": rma_lines.ids,
|
"active_ids": rma_lines.ids,
|
||||||
"active_model": "rma.order.line",
|
"active_model": "rma.order.line",
|
||||||
"picking_type": "incoming",
|
"picking_type": "incoming",
|
||||||
|
|||||||
@@ -150,8 +150,11 @@ class RmaMakePicking(models.TransientModel):
|
|||||||
product = item.line_id.product_id
|
product = item.line_id.product_id
|
||||||
if float_compare(qty, 0, product.uom_id.rounding) != 1:
|
if float_compare(qty, 0, product.uom_id.rounding) != 1:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_("No quantity to transfer on %s shipment of product %s.")
|
_(
|
||||||
% (_(picking_type), product.default_code or product.name)
|
"No quantity to transfer on %(arg1)s shipment of product %(arg2)s.",
|
||||||
|
arg1=_(picking_type),
|
||||||
|
arg2=product.default_code or product.name,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
# create picking
|
# create picking
|
||||||
procurements = []
|
procurements = []
|
||||||
|
|||||||
Reference in New Issue
Block a user