minor fix
This commit is contained in:
parent
890a838841
commit
7e12a245c6
|
@ -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.
Loading…
Reference in New Issue