changeset aabc24daa5fe in modules/sale_shipment_cost:6.2
details:
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=aabc24daa5fe
description:
Add shipment cost also for kit
issue11178
review374791002
(grafted from 8693733aa9bd90ba353cc739098cdbd63c97e7fb)
diffstat:
sale.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d18beb1b150e -r aabc24daa5fe sale.py
--- a/sale.py Mon Nov 01 17:31:55 2021 +0100
+++ b/sale.py Thu Feb 03 22:23:02 2022 +0100
@@ -222,12 +222,12 @@
pool = Pool()
Date = pool.get('ir.date')
Currency = pool.get('currency.currency')
- Move = pool.get('stock.move')
+ Line = pool.get('sale.line')
stockable = any(
line.quantity >= 0 for line in self.lines
if line.type == 'line'
and line.product
- and line.product.type in Move.get_product_types())
+ and line.product.type in Line.get_move_product_types())
if self.carrier and stockable:
with Transaction().set_context(self._get_carrier_context()):
cost, currency_id = self.carrier.get_sale_price()