mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] return value
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user