Skip to content

Commit

Permalink
[FIX] account_balance_reporting: Los periodos y ejercicios fiscales n…
Browse files Browse the repository at this point in the history
…o se tienen en cuenta porque el contexto no se pasa correctamente con esa forma de invocación.
  • Loading branch information
pedrobaeza committed Dec 15, 2014
1 parent 31a90dd commit 9f13712
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def action_calculate(self, cr, uid, ids, context=None):
report with calculated values."""
if context is None:
context = {}
line_obj = self.pool.get('account.balance.reporting.line')
line_obj = self.pool['account.balance.reporting.line']
# Set the state to 'calculating'
self.write(cr, uid, ids, {
'state': 'calc',
Expand Down Expand Up @@ -406,8 +406,9 @@ def refresh_values(self, cr, uid, ids, context=None):
'periods': [p.id for p in
report.previous_period_ids],
})
value = line._get_account_balance(
tmpl_value, balance_mode=balance_mode, context=ctx)
value = self._get_account_balance(
cr, uid, [line.id], tmpl_value,
balance_mode=balance_mode, context=ctx)
elif re.match(r'^[\+\-0-9a-zA-Z_\*\ ]*$', tmpl_value):
# Account concept codes separated by "+" => sum of the
# concepts (template lines) values.
Expand Down

0 comments on commit 9f13712

Please sign in to comment.