fix: import + no symbol if None

This commit is contained in:
Frederik Jaeckel 2023-02-27 21:17:48 +01:00
parent 17a4499ac7
commit 6bcb4efc2b
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
from trytond.model import ModelSingleton, ModelView, ModelSQL, fields
from trytond.pool import Pool
class AssetSetting(ModelSingleton, ModelSQL, ModelView):

View file

@ -42,7 +42,7 @@ class Reconciliation(metaclass=PoolMeta):
digits=self.quantity_digits),
'end_quantity': Report.format_number(self.end_quantity or 0.0, None,
digits=self.quantity_digits),
'uom_symbol': self.quantity_uom.symbol,
'uom_symbol': getattr(self.quantity_uom, 'symbol', '-'),
}
return recname