mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX rma provide picking_type_id to stock moves during manual picking
This commit is contained in:
@@ -53,6 +53,7 @@ class RMATemplate(models.Model):
|
|||||||
'carrier_id': self.in_carrier_id.id if self.in_carrier_id else False,
|
'carrier_id': self.in_carrier_id.id if self.in_carrier_id else False,
|
||||||
'move_lines': [(0, None, {
|
'move_lines': [(0, None, {
|
||||||
'name': rma.name + ' IN: ' + l.product_id.name_get()[0][1],
|
'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_id': l.product_id.id,
|
||||||
'product_uom_qty': l.product_uom_qty,
|
'product_uom_qty': l.product_uom_qty,
|
||||||
'product_uom': l.product_uom_id.id,
|
'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,
|
'carrier_id': self.out_carrier_id.id if self.out_carrier_id else False,
|
||||||
'move_lines': [(0, None, {
|
'move_lines': [(0, None, {
|
||||||
'name': rma.name + ' OUT: ' + l.product_id.name_get()[0][1],
|
'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_id': l.product_id.id,
|
||||||
'product_uom_qty': l.product_uom_qty,
|
'product_uom_qty': l.product_uom_qty,
|
||||||
'product_uom': l.product_uom_id.id,
|
'product_uom': l.product_uom_id.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user