Feedback 1436: Feedback - Dokumentenvorlagen, Gesamtgewicht in der sale.order richtig berechnen.
parent
78a09f2068
commit
de160c5396
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue