Set product on invoice line with cost method 'shipment'

issue5196
review19711002
This commit is contained in:
Ralf Peschke
2015-12-31 13:31:06 +01:00
parent 225c485494
commit ec681480d6
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -89,6 +89,7 @@ class ShipmentOut:
invoice_line = InvoiceLine()
product = self.carrier.carrier_product
invoice_line.type = 'line'
invoice_line.product = product
party = invoice.party
party_context = {}
+3
View File
@@ -176,6 +176,9 @@ Check customer invoice::
>>> sale.reload()
>>> invoice, = sale.invoices
>>> sorted([l.product for l in invoice.lines]) == \
... sorted([product, carrier_product])
True
>>> invoice.untaxed_amount
Decimal('83.00')