changeset e753cccab3aa in modules/purchase_price_list:6.2
details: 
https://hg.tryton.org/modules/purchase_price_list?cmd=changeset&node=e753cccab3aa
description:
        Use purchase_uom instead of sale_uom

        issue11200
        review360841002
        (grafted from aae404c4fd8c77882ac4173ace720615a8b6ba94)
diffstat:

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

diffs (12 lines):

diff -r ff5fa986ac38 -r e753cccab3aa product.py
--- a/product.py        Mon Nov 01 17:23:03 2021 +0100
+++ b/product.py        Tue Feb 01 18:09:47 2022 +0100
@@ -25,7 +25,7 @@
                     context_uom = UoM(context['uom'])
                 if context.get('taxes'):
                     taxes = Tax.browse(context.get('taxes'))
-                uom = context_uom or self.sale_uom
+                uom = context_uom or self.purchase_uom
                 if uom.category != self.purchase_uom.category:
                     uom = self.purchase_uom
                 unit_price = price_list.compute(

Reply via email to