prepare test for porting
This commit is contained in:
parent
619a17bcd6
commit
3467c08895
16 changed files with 690 additions and 373 deletions
|
@ -81,8 +81,8 @@ class Reconciliation(Workflow, ModelSQL, ModelView):
|
|||
('date', '<=', Eval('date_to')),
|
||||
],
|
||||
domain=[
|
||||
('date', '>=', Eval('date_from')),
|
||||
('date', '<=', Eval('date_to')),
|
||||
('date', '>=', Eval('date_from', None)),
|
||||
('date', '<=', Eval('date_to', None)),
|
||||
])
|
||||
|
||||
currency = fields.Function(fields.Many2One(
|
||||
|
@ -327,8 +327,11 @@ class Reconciliation(Workflow, ModelSQL, ModelView):
|
|||
'to': Report.format_date(self.date_to, None)
|
||||
if self.date_to is not None else '-',
|
||||
'start_amount': Report.format_number(
|
||||
self.start_amount or 0.0, None),
|
||||
'end_amount': Report.format_number(self.end_amount or 0.0, None),
|
||||
self.start_amount or 0.0, None,
|
||||
digits=getattr(self.currency, 'digits', 2)),
|
||||
'end_amount': Report.format_number(
|
||||
self.end_amount or 0.0, None,
|
||||
digits=getattr(self.currency, 'digits', 2)),
|
||||
'symbol': getattr(self.currency, 'symbol', '-'),
|
||||
'num': len(self.lines),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue