Merge pull request #22461 from britlog/develop

fix: product_info
This commit is contained in:
rohitwaghchaure 2020-06-28 11:05:26 +05:30 committed by GitHub
commit 2f4971b5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ def get_product_info_for_website(item_code, skip_quotation_creation=False):
def set_product_info_for_website(item):
"""set product price uom for website"""
product_info = get_product_info_for_website(item.item_code, skip_quotation_creation=True)
product_info = get_product_info_for_website(item.item_code, skip_quotation_creation=True).get("product_info")
if product_info:
item.update(product_info)