fix: import + no symbol if None
This commit is contained in:
parent
17a4499ac7
commit
6bcb4efc2b
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
|
|
||||||
from trytond.model import ModelSingleton, ModelView, ModelSQL, fields
|
from trytond.model import ModelSingleton, ModelView, ModelSQL, fields
|
||||||
|
from trytond.pool import Pool
|
||||||
|
|
||||||
|
|
||||||
class AssetSetting(ModelSingleton, ModelSQL, ModelView):
|
class AssetSetting(ModelSingleton, ModelSQL, ModelView):
|
||||||
|
|
|
@ -42,7 +42,7 @@ class Reconciliation(metaclass=PoolMeta):
|
||||||
digits=self.quantity_digits),
|
digits=self.quantity_digits),
|
||||||
'end_quantity': Report.format_number(self.end_quantity or 0.0, None,
|
'end_quantity': Report.format_number(self.end_quantity or 0.0, None,
|
||||||
digits=self.quantity_digits),
|
digits=self.quantity_digits),
|
||||||
'uom_symbol': self.quantity_uom.symbol,
|
'uom_symbol': getattr(self.quantity_uom, 'symbol', '-'),
|
||||||
}
|
}
|
||||||
return recname
|
return recname
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue