diff options
| author | Arthur Maniet <me@whisno.be> | 2014-12-05 15:12:33 +0100 |
|---|---|---|
| committer | Arthur Maniet <me@whisno.be> | 2014-12-10 14:00:42 +0100 |
| commit | 8b6d72d8c8bcc7d0e8c08e838668479bea4f65d7 (patch) | |
| tree | c2d0bbba5e6977ed5d8868a9d2c283c045f1e74c /addons | |
| parent | cc703c736cbf09da6e31859ba988ff03ad415faa (diff) | |
[FIX] account: bank statement reconciliation widget: do not propose partial reconciliation if there are created lines
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/static/src/js/account_widgets.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/account/static/src/js/account_widgets.js b/addons/account/static/src/js/account_widgets.js index 2e896b6e3a6..1b26a2a094f 100644 --- a/addons/account/static/src/js/account_widgets.js +++ b/addons/account/static/src/js/account_widgets.js @@ -1535,7 +1535,8 @@ openerp.account = function (instance) { self.set("balance", balance); // Propose partial reconciliation if necessary - if (lines_selected_num === 1 && + if (self.getCreatedLines().length === 0 && + lines_selected_num === 1 && self.st_line.amount * balance > 0 && self.st_line.amount * (mv_lines_selected[0].debit - mv_lines_selected[0].credit) < 0 && ! mv_lines_selected[0].partial_reconcile) { |
