[IMP] account_*_stock_report_non_billed: Take care about discount when calculating amount to invoice
parent
7bf9cd6b20
commit
41d0db8b09
|
@ -105,7 +105,7 @@ class StockMove(models.Model):
|
||||||
self.quantity_not_invoiced = qty_to_invoice - invoiced_qty
|
self.quantity_not_invoiced = qty_to_invoice - invoiced_qty
|
||||||
self.price_not_invoiced = (
|
self.price_not_invoiced = (
|
||||||
qty_to_invoice - invoiced_qty
|
qty_to_invoice - invoiced_qty
|
||||||
) * self.sale_line_id.price_unit
|
) * self.sale_line_id.price_reduce
|
||||||
|
|
||||||
@api.depends("sale_line_id")
|
@api.depends("sale_line_id")
|
||||||
@api.depends_context("date_check_invoiced_moves")
|
@api.depends_context("date_check_invoiced_moves")
|
||||||
|
|
Loading…
Reference in New Issue