changeset 51cb371531ff in modules/sale_shipment_cost:6.0
details:
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=51cb371531ff
description:
Backed out changeset 1cbf19fb0f7d
diffstat:
sale.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1cbf19fb0f7d -r 51cb371531ff sale.py
--- a/sale.py Thu Feb 03 22:23:02 2022 +0100
+++ b/sale.py Tue Feb 08 10:17:08 2022 +0100
@@ -212,12 +212,12 @@
pool = Pool()
Date = pool.get('ir.date')
Currency = pool.get('currency.currency')
- Line = pool.get('sale.line')
+ Move = pool.get('stock.move')
stockable = any(
line.quantity >= 0 for line in self.lines
if line.type == 'line'
and line.product
- and line.product.type in Line.get_move_product_types())
+ and line.product.type in Move.get_product_types())
if self.carrier and stockable:
with Transaction().set_context(self._get_carrier_context()):
cost, currency_id = self.carrier.get_sale_price()