Fix get conversion factor NoneType error, for articles.
This commit is contained in:
parent
ee902ee733
commit
cf7ed09049
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class Article(RawBaseModel):
|
||||||
unit = self._get_standard_alt_unit()
|
unit = self._get_standard_alt_unit()
|
||||||
if unit and unit.AltEnhetOmrFaktor:
|
if unit and unit.AltEnhetOmrFaktor:
|
||||||
return unit.AltEnhetOmrFaktor
|
return unit.AltEnhetOmrFaktor
|
||||||
else:
|
elif unit:
|
||||||
return unit.ArticleAlternativeUnit.AltEnhetOmrFaktor
|
return unit.ArticleAlternativeUnit.AltEnhetOmrFaktor
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue