Skip to content

Commit

Permalink
[IMP] l10n_br_account_payment_order: add short name for 'boleto espec…
Browse files Browse the repository at this point in the history
…ies'
  • Loading branch information
antoniospneto committed Mar 22, 2024
1 parent 496cfbb commit 364e55e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from odoo import fields, models

from odoo.addons.l10n_br_account_payment.constants import get_boleto_especie_short_name

from ..constants.br_cobranca import DICT_BRCOBRANCA_CURRENCY, get_brcobranca_bank

_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -68,7 +70,10 @@ def send_payment(self):
"documento_numero": move_line.document_number,
"data_vencimento": move_line.date_maturity.strftime("%Y/%m/%d"),
"data_documento": move_line.move_id.invoice_date.strftime("%Y/%m/%d"),
"especie": move_line.payment_mode_id.boleto_species,
"especie": move_line.currency_id.symbol,
"especie_documento": get_boleto_especie_short_name(
move_line.payment_mode_id.boleto_species
),
"moeda": DICT_BRCOBRANCA_CURRENCY["R$"],
"aceite": move_line.payment_mode_id.boleto_accept,
"sacado_endereco": (move_line.partner_id.street_name or "")
Expand Down

0 comments on commit 364e55e

Please sign in to comment.