diff options
| author | ougc27 <oscar.garza@jarsa.com.mx> | 2018-03-28 11:14:35 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-03-28 11:15:41 +0200 |
| commit | 8327b67cf5498a1d9d133ec02f0e7619c4ce26d1 (patch) | |
| tree | 8c5a8a373bfa671119da734b04f444980a983606 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 07435b110440ba41e559373c4494e674e68e5724 (diff) | |
[FIX] account: fix wrong domain/default journal on account payment view.
Fixed use case:
When creating a new payment (not from invoice), the payment amount is zero and this value triggers an onchange method that set the first miscellanous journal_id as the payment journal_id and force the domain with only miscellanous journals.
This behavior was added in commit 3267e76 to be able to clear invoices by registering a 0 amount payment on it, but this has obviously only interest when registered from the invoices form view... To keep this functionality we only add a "AND" sentence to validate that the payment has invoices, if the payment has not any invoices the journal and the domain of this field will be for bank and cash.
Was task ID 1823023. Was PR #23609. Nice courtesy of Oscar Ulises Garza Córdova
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
