From bbfded49886f72871be972d2c097134232aae0fa Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Jun 2018 13:29:53 +0200 Subject: [PATCH] [IMP]allow to create supplier RMA for no dropship cases --- rma/wizards/rma_order_line_make_supplier_rma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/wizards/rma_order_line_make_supplier_rma.py b/rma/wizards/rma_order_line_make_supplier_rma.py index 4dbe5bde..cf045e53 100644 --- a/rma/wizards/rma_order_line_make_supplier_rma.py +++ b/rma/wizards/rma_order_line_make_supplier_rma.py @@ -65,7 +65,7 @@ class RmaLineMakeSupplierRma(models.TransientModel): items.append([0, 0, self._prepare_item(line)]) suppliers = lines.mapped( lambda r: r.supplier_address_id.parent_id or r.supplier_address_id) - if len(suppliers) != 1: + if len(suppliers) > 1: raise ValidationError( _('Only RMA lines from the same supplier can be ' 'processed at the same time'))