minor fix

This commit is contained in:
fabiand14 2021-10-20 16:44:47 -05:00
parent 890a838841
commit 7e12a245c6
2 changed files with 2 additions and 2 deletions

View File

@ -414,11 +414,11 @@ class ShipmentDetailedReport(Report):
value['cost_w_tax'] = float(product_.cost_price_taxed) * quantity
else:
value['cost_w_tax'] = None
if hasattr(product_, 'section'):
if hasattr(product_, 'section') and product_.section:
value['section'] = product_.section.name
else:
value['section'] = None
if hasattr(product_, 'conservation'):
if hasattr(product_, 'conservation') and product_.conservation:
value['conservation'] = product_.conservation.name
else:
value['conservation'] = None

Binary file not shown.