[MIG] rma: to Odoo 15.0

This commit is contained in:
Jared Kipe
2021-10-07 13:10:30 -07:00
parent 65aecd81c8
commit 381b625a76
3 changed files with 21 additions and 26 deletions

View File

@@ -122,6 +122,8 @@ class RMATemplate(models.Model):
'product_uom': l.product_uom_id.id,
'procure_method': self.in_procure_method,
'to_refund': self.in_to_refund,
'location_id': self.in_location_id.id,
'location_dest_id': self.in_location_dest_id.id,
}) for l in rma.lines.filtered(lambda l: l.product_id.type != 'service')],
}
@@ -140,6 +142,8 @@ class RMATemplate(models.Model):
'product_uom': l.product_uom_id.id,
'procure_method': self.out_procure_method,
'to_refund': self.out_to_refund,
'location_id': self.out_location_id.id,
'location_dest_id': self.out_location_dest_id.id,
}) for l in rma.lines.filtered(lambda l: l.product_id.type != 'service')],
}