[FIX] account: account balances computation
Commits7b7f3fa
andd6c88b8
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:
parent
8d9b309f9a
commit
ad979b71a2
|
@ -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">
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue