[IMP] return value

This commit is contained in:
unknown
2013-04-25 09:19:08 +02:00
parent 03a8016fd7
commit 39484b4a96

View File

@@ -33,6 +33,7 @@ import datetime
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
class ErrorTooManyPartner(Exception): class ErrorTooManyPartner(Exception):
""" """
New Exception definition that is raised when more than one partner is matched by New Exception definition that is raised when more than one partner is matched by
@@ -405,15 +406,14 @@ class AccountStatementLine(orm.Model):
{117009: {'partner_id': 100997, 'account_id': 489L}} {117009: {'partner_id': 100997, 'account_id': 489L}}
""" """
profile_obj = self.pool.get('account.statement.profile') profile_obj = self.pool.get('account.statement.profile')
res = {}
if line.get('already_completed'): if line.get('already_completed'):
return res return {}
# Ask the rule # Ask the rule
vals = profile_obj._find_values_from_rules(cr, uid, rules, line, context) vals = profile_obj._find_values_from_rules(cr, uid, rules, line, context)
if vals: if vals:
vals['id'] = line['id'] vals['id'] = line['id']
return vals return vals
return res return {}
class AccountBankSatement(orm.Model): class AccountBankSatement(orm.Model):