Feedback 1436: Feedback - Dokumentenvorlagen, Gesamtgewicht in der sale.order richtig berechnen.

develop
Roman Widmann 2018-03-01 10:48:15 +01:00
parent 78a09f2068
commit de160c5396
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class SaleOrder(models.Model):
for record in self:
sum = 0
for line in record.order_line:
sum += line.product_id.weight * line.product_uom_qty
sum += (line.lot_id.weight or line.product_id.weight) * line.product_uom_qty
record.weight_total = sum
@api.multi