diff options
| author | Goffin Simon <sig@odoo.com> | 2018-10-25 09:42:07 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-10-29 07:09:15 +0000 |
| commit | bb939ffac0c8222a4b34523b739b64173f2258f8 (patch) | |
| tree | 5c5554b4300a7a075a1a1d84388cb76e441128fd /doc/reference/javascript_api.rst | |
| parent | 19d8adbce1413327744e87ede610a927ad34bac8 (diff) | |
(FIX] account: Impossible to make a partial credit note
Steps to reproduce the bug:
- Create a credit note for an amount of 100$
- Validate it and register a payment
- Let's pay an amount of 90$ and mark this credit note as fully paid
Bug:
An error message was raised saying: Wrong credit or debit value in accounting entry !
The field residual_company_signed must be positive for out_invoice and in_refund and
negative for in_invoice and out_refund. In this way, the correct writeoff amount
can be computed in function _create_payment_entry.
PS: In function _compute_payment_amount, the field residual_signed and residual_company_signed
are already signed, that's why it was wrong to multiply a second time on it with MAP_INVOICE_TYPE_PAYMENT_SIGN
opw:1893570
closes odoo/odoo#28148
Diffstat (limited to 'doc/reference/javascript_api.rst')
0 files changed, 0 insertions, 0 deletions
