changeset 34546a85913a in modules/account_stock_anglo_saxon:4.4
details:
https://hg.tryton.org/modules/account_stock_anglo_saxon?cmd=changeset;node=34546a85913a
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 e30be96308e5 -r 34546a85913a invoice.py
--- a/invoice.py Wed Nov 08 23:47:32 2017 +0100
+++ b/invoice.py Fri Mar 08 18:53:15 2019 +0100
@@ -89,7 +89,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)