changeset 1cbf19fb0f7d in modules/sale_shipment_cost:6.0
details: 
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=1cbf19fb0f7d
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 d3fc7358c2d5 -r 1cbf19fb0f7d sale.py
--- a/sale.py   Fri Oct 15 17:24:21 2021 +0200
+++ b/sale.py   Thu Feb 03 22:23:02 2022 +0100
@@ -212,12 +212,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()

Reply via email to