Merge PR #207 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-03-05 06:17:12 +00:00

View File

@@ -888,6 +888,7 @@ class Rma(models.Model):
picking_form.company_id = self.company_id
picking_form.origin = self.name
picking_form.partner_id = self.partner_shipping_id
picking_form.location_id = self.partner_shipping_id.property_stock_customer
picking_form.location_dest_id = self.location_id
with picking_form.move_ids_without_package.new() as move_form:
move_form.product_id = self.product_id