fix: import + no symbol if None
This commit is contained in:
parent
3512e87f71
commit
19e4a26676
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
|
||||
from trytond.model import ModelSingleton, ModelView, ModelSQL, fields
|
||||
from trytond.pool import Pool
|
||||
|
||||
|
||||
class AssetSetting(ModelSingleton, ModelSQL, ModelView):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue