prepare test for porting

This commit is contained in:
Frederik Jaeckel 2023-06-02 20:40:12 +02:00
parent a84791f1da
commit bbe71a8252
16 changed files with 690 additions and 373 deletions

View file

@ -287,7 +287,9 @@ class Book(tree(separator='/'), Workflow, ModelSQL, ModelView):
if self.btype:
return '%(name)s | %(balance)s %(symbol)s | %(state)s' % {
'name': recname or '-',
'balance': Report.format_number(self.balance or 0.0, None),
'balance': Report.format_number(
self.balance or 0.0, None,
digits=getattr(self.currency, 'digits', 2)),
'symbol': getattr(self.currency, 'symbol', '-'),
'state': self.state_string,
}