changeset af635935bf19 in modules/account_stock_anglo_saxon:4.2
details:
https://hg.tryton.org/modules/account_stock_anglo_saxon?cmd=changeset;node=af635935bf19
description:
Round cost with company instead of invoice currency
issue8186
review259091002
(grafted from b69bc1a680f4c1307b390597a09e7e0e46b24fab)
diffstat:
invoice.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a4b520777c0b -r af635935bf19 invoice.py
--- a/invoice.py Wed Nov 08 23:47:54 2017 +0100
+++ b/invoice.py Fri Mar 08 18:53:15 2019 +0100
@@ -99,7 +99,7 @@
moves.sort(key=operator.attrgetter('effective_date'))
cost = Move.update_anglo_saxon_quantity_product_cost(
self.product, moves, abs(self.quantity), self.unit, type_)
- cost = self.invoice.currency.round(cost)
+ cost = self.invoice.company.currency.round(cost)
anglo_saxon_move_lines = self._get_anglo_saxon_move_lines(cost, type_)
result.extend(anglo_saxon_move_lines)