From 70f1a850a45aa01a69ad87d4019b4e35a58077cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 30 Apr 2016 20:20:15 +0200 Subject: [PATCH] [FIX] mis_builder: unallocated p&l computation fix --- mis_builder/models/aep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mis_builder/models/aep.py b/mis_builder/models/aep.py index 79a370a6..2a485924 100644 --- a/mis_builder/models/aep.py +++ b/mis_builder/models/aep.py @@ -212,7 +212,8 @@ class AccountingExpressionProcessor(object): date_from_date = fields.Date.from_string(date_from) fy_date_from = \ company.compute_fiscalyear_dates(date_from_date)['date_from'] - domain = [('date', '<', fields.Date.to_string(fy_date_from))] + domain = [('date', '<', fields.Date.to_string(fy_date_from)), + ('user_type_id.include_initial_balance', '=', False)] if target_move == 'posted': domain.append(('move_id.state', '=', 'posted')) return expression.normalize_domain(domain)