Fix get_sale_price if the user has no company for issue633
This commit is contained in:
1 parent
dfd43436ea
commit
113930bae7
1 file changed
+1
-1
@@ -1329,7 +1329,7 @@ class Product(OSV):
|
||||
res[product.id] = uom_obj.compute_price(cursor, user,
|
||||
product.default_uom, res[product.id], uom,
|
||||
context=context)
|
||||
if currency:
|
||||
if currency and user2.company:
|
||||
if user2.company.currency.id != currency.id:
|
||||
res[product.id] = currency_obj.compute(cursor, user,
|
||||
user2.company.currency, res[product.id],
|
||||
|
||||
Reference in new issue
Block a user