Created
February 14, 2019 15:12
-
-
Save josemoralesp/185804922409b483fe67b789728adb78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Payment = env['account.payment'] | |
payments = [] | |
for record in records.filtered(lambda a: a.state == 'open'): | |
payment = Payment.search([('communication', '=', record.l10n_mx_edi_cfdi_uuid)]) | |
if payment: | |
payments.append((payment.id, payment.name, record.number)) | |
raise Warning('%s' % payments) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment