# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 from odoo import fields, models class AccountMove(models.Model): _inherit = "account.move" x_fc_nexacloud_invoice_id = fields.Char( index=True, copy=False, help="Source NexaCloud invoice id — ledger idempotency key.") x_fc_stripe_invoice_id = fields.Char(index=True, copy=False) _fc_nc_invoice_uniq = models.Constraint( "unique(x_fc_nexacloud_invoice_id)", "One Odoo invoice per NexaCloud invoice id.", )