diff options
| author | oco-odoo <oco@odoo.com> | 2020-11-02 12:21:58 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2020-11-02 14:47:26 +0000 |
| commit | 1dd6199519b4ad5b5b17dfa17965ededcecb6da4 (patch) | |
| tree | aa85a5951b9afee66f039e454f35abe66a4593ab /addons/mail/static/src/models/thread_cache/thread_cache.js | |
| parent | 4f2f347c8b21b78efaa702d1b3c91b7f88dd88e0 (diff) | |
[FIX] account: reconciliation widget: make invoice matching reconciliation models work with write-off lines
Use case:
1) Create an invoice matching reconciliation model, matching 90% percent of the amount, with a write-off line applying a 100% write-off of the remaining amount.
2) Create a 100€ invoice
3) Create a bank statement with a 90€ statement line whose payment reference corresponds to the one of the invoice
4) Click 'reconcile' on the bank statement
On enterprise, this crashes when preparing the data to give to the reconciliation widget, as the write_off_vals key is not set properly by the call to _apply_rules.
OPW 2367754
closes odoo/odoo#61148
Related: odoo/enterprise#14526
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions
