odoo/odoo#205451
Created by zaoral
Closed
- label
- adhoc-dev:18.0-h-69428-kz
- head
- cc70040e22c41eeadbdce4f3907c66fda0bc68f6
| odoo/odoo | |
|---|---|
| 18.0 | #205451 |
[FIX] l10n_latam_invoice_document: create debit note from credit note
Description of the issue/feature this PR addresses:
In debit notes wizards: If we make a wrong credit note and we want to correct it we must generate a debit note related to it.
Currently odoo only allows to generate debit notes from an invoice.
Steps to reproduce the error.
- Install the Argentine localization
- Create an invoice and post it
- From the invoice using the wizard create a credit note and post it.
- From the credit note open the wizard to create a debit note.
- On submit the wizard we obtain an exception "You can not use a credit_note document type with a invoice"
This happens because the debit note wizard use copy method without change the l10n_latam_document_type_id value.
Current behavior before PR:
When creating a debit note from a credit note get an error.
Desired behavior after PR is merged:
We can create a debit memo from a credit note.
Adhoc tiket 69428 - 69854
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr