Skip to content
Snippets Groups Projects
Commit 4058b200 authored by Achraf (abz)'s avatar Achraf (abz)
Browse files

[FIX] l10n_latam_invoice_document: Add credit note to invoice


Issue

    - Install "l10n_latam_invoice_document"
    - Try to add a credit note to any invoice

Cause

    "l10n_latam_manual_document_number" is unitialized when
    "l10n_latam_use_documents" is equal to False

Solution

    Init "l10n_latam_manual_document_number" to False

opw-2366298

closes odoo/odoo#60653

X-original-commit: 6b5f40f4310f02204d98c58d45f92a27c7fad7c1
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 1108d991
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@ class AccountMoveReversal(models.TransientModel):
@api.depends('l10n_latam_document_type_id')
def _compute_l10n_latam_manual_document_number(self):
self.l10n_latam_manual_document_number = False
for rec in self.filtered('move_ids'):
move = rec.move_ids[0]
if move.journal_id and move.journal_id.l10n_latam_use_documents:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment