From 1c2d080ffa9d379a540e6e264c9d1cb597a9bcc1 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Mon, 11 Nov 2019 17:33:07 -0800 Subject: [PATCH] FIX `rma` provide picking_type_id to stock moves during manual picking --- rma/models/rma.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rma/models/rma.py b/rma/models/rma.py index d7a2f91a..1ee0fd3e 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -53,6 +53,7 @@ class RMATemplate(models.Model): 'carrier_id': self.in_carrier_id.id if self.in_carrier_id else False, 'move_lines': [(0, None, { 'name': rma.name + ' IN: ' + l.product_id.name_get()[0][1], + 'picking_type_id': self.in_type_id.id, 'product_id': l.product_id.id, 'product_uom_qty': l.product_uom_qty, 'product_uom': l.product_uom_id.id, @@ -71,6 +72,7 @@ class RMATemplate(models.Model): 'carrier_id': self.out_carrier_id.id if self.out_carrier_id else False, 'move_lines': [(0, None, { 'name': rma.name + ' OUT: ' + l.product_id.name_get()[0][1], + 'picking_type_id': self.out_type_id.id, 'product_id': l.product_id.id, 'product_uom_qty': l.product_uom_qty, 'product_uom': l.product_uom_id.id,