changeset 8693733aa9bd in modules/sale_shipment_cost:default
details: 
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=8693733aa9bd
description:
        Add shipment cost also for kit

        issue11178
        review374791002
diffstat:

 sale.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 56f344322e39 -r 8693733aa9bd sale.py
--- a/sale.py   Sun Jan 23 12:54:56 2022 +0100
+++ b/sale.py   Thu Feb 03 22:23:02 2022 +0100
@@ -221,12 +221,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