[FIX] account: account balances computation

Commits 7b7f3fa and d6c88b8 filter out special periods from the account
balances. However, this filtering is not necessary anymore for a closed
fiscal year. The result is that the opening balance becomes wrong as
soon as the previous fiscal year is closed.

This commit fix this by computing the balance over all fiscal years.

Closes #11515
This commit is contained in:
Manuel Vázquez Acosta 2016-03-28 20:29:16 -04:00 committed by Nicolas Martinelli
parent 8d9b309f9a
commit ad979b71a2
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@
attrs="{'readonly':[('internal_number','!=',False)]}"/>
<field domain="[('company_id', '=', company_id),('type','=', 'receivable')]"
name="account_id" groups="account.group_account_user"
context="{'periods_special': False}"/>
context="{'periods_special': False, 'all_fiscalyear': True}"/>
<label for="currency_id" groups="base.group_multi_currency"/>
<div groups="base.group_multi_currency">

View File

@ -247,7 +247,7 @@
<field name="view_mode">tree,form,graph</field>
<field name="search_view_id" ref="view_account_search"/>
<field name="view_id" ref="view_account_list"/>
<field name="context">{'periods_special': False}</field>
<field name="context">{'periods_special': False, 'all_fiscalyear': True}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add an account.