changeset f89de119ed2e in modules/account_stock_landed_cost_weight:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost_weight?cmd=changeset;node=f89de119ed2e
description:
Add stock move filter per category and product
We allow to filter the stock moves updated by landed cost.
issue9560
review302071002
diffstat:
account.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r 2fea33dfe552 -r f89de119ed2e account.py
--- a/account.py Sun Oct 11 13:37:32 2020 +0200
+++ b/account.py Sun Oct 11 13:46:31 2020 +0200
@@ -21,9 +21,7 @@
def _get_weight_factors(self):
"Return the factor for each move based on weight"
- moves = [m for s in self.shipments for m in s.incoming_moves
- if m.state != 'cancelled']
-
+ moves = self.stock_moves()
sum_weight = Decimal(0)
weights = {}
for move in moves: