prepare test for porting
This commit is contained in:
parent
a84791f1da
commit
bbe71a8252
16 changed files with 690 additions and 373 deletions
4
book.py
4
book.py
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue