diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-12-03 10:46:54 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-12-03 10:54:24 +0100 |
| commit | f07e0c1af2091cc8f1d1c035a962c974e561e852 (patch) | |
| tree | 27f5c466a573971fedfc7083e4cc6ceac5b3e751 /addons/mail/static/src/xml/thread.xml | |
| parent | 120f6a7ea531186e8df45b6fbd355de8ea71f3f4 (diff) | |
[FIX] account: force `amount_residual` recomputation on post
The `amount_residual` computation depends on the fact
the `acccount_id` of the move line does allow reconciliation
or not. If it doesn't, the amount residual will always be 0.0.
So, if you check the "allow reconciliation" on the account
after creating the journal items or after changing the
debit/credit amount, the amount residual is not recomputed.
We do not set the `depends` directly on `account_id.reconcile`,
as, if we do, and a user checks/unchecks this box on an account
having a lot of records, this will recompute this residual
amount on all lines, and this is something we do not want
to happen.
The work-around when this case happens,
that the amount residual is not correct due to the fact
the `allow reconciliation` on the account
was checked after having posted the entry,
is to cancel the entry and repost it. This
will recompute the residual amount.
opw-656972
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
