[FIX] sale: quantity in invoice line from invoicing
Introduced by 98ccb8539e
This commit is contained in:
@@ -81,7 +81,7 @@ class SaleAdvancePaymentInv(models.TransientModel):
|
||||
'origin': order.name,
|
||||
'account_id': account_id,
|
||||
'price_unit': amount,
|
||||
'quantity': 0.0,
|
||||
'quantity': 1.0,
|
||||
'discount': 0.0,
|
||||
'uom_id': self.product_id.uom_id.id,
|
||||
'product_id': self.product_id.id,
|
||||
@@ -131,7 +131,6 @@ class SaleAdvancePaymentInv(models.TransientModel):
|
||||
'product_uom': self.product_id.uom_id.id,
|
||||
'product_id': self.product_id.id,
|
||||
'tax_id': [(6, 0, self.product_id.taxes_id.ids)],
|
||||
'qty_invoiced': 0.0,
|
||||
})
|
||||
self._create_invoice(order, so_line, amount)
|
||||
if self._context.get('open_invoices', False):
|
||||
|
||||
Reference in New Issue
Block a user