diff options
| author | wan <wan@odoo.com> | 2019-09-30 10:13:40 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-16 11:51:27 +0000 |
| commit | e00532ffb94ac9f4aed012e215d7c7adddcb7366 (patch) | |
| tree | 7b58115b7d7083e3f40a4fa6df5468af5aab50bd /addons/account/static/src/xml/account_reconciliation.xml | |
| parent | eaa094285e489dadc5607cfb9ec44fc721322a29 (diff) | |
[FIX] account: badly formatted reconciliation proposition
When a reconciliation proposition's amount is computed from a regex, we
cannnot be sure the regex captured something. If it didn't we don't want
to display a badly formatted line so we set the amount to 0.
closes odoo/odoo#38870
X-original-commit: 111495795b6cdc53312096078033804dbbfe57f2
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
Diffstat (limited to 'addons/account/static/src/xml/account_reconciliation.xml')
| -rw-r--r-- | addons/account/static/src/xml/account_reconciliation.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/static/src/xml/account_reconciliation.xml b/addons/account/static/src/xml/account_reconciliation.xml index 264df83a3c2..e1ac928a8e6 100644 --- a/addons/account/static/src/xml/account_reconciliation.xml +++ b/addons/account/static/src/xml/account_reconciliation.xml @@ -296,7 +296,7 @@ <tr t-if="line.display !== false" t-attf-class="mv_line #{line.already_paid ? ' already_reconciled' : ''} #{line.__invalid ? 'invalid' : ''} #{line.is_tax ? 'is_tax' : ''}" t-att-data-line-id="line.id" t-att-data-selected="selected"> <td class="cell_account_code"><t t-esc="line.account_code"/>​</td> <!-- zero width space to make empty lines the height of the text --> <td class="cell_due_date"> - <t t-if="typeof(line.id) != 'number' && line.amount"> + <t t-if="typeof(line.id) != 'number' && line.id"> <span class="badge badge-secondary">New</span> </t> <t t-else="" t-esc="line.date_maturity || line.date"/> |
