diff --git a/payment_authorize_auto_reconcile/models/payment_transaction.py b/payment_authorize_auto_reconcile/models/payment_transaction.py index f51264b..a24754e 100644 --- a/payment_authorize_auto_reconcile/models/payment_transaction.py +++ b/payment_authorize_auto_reconcile/models/payment_transaction.py @@ -106,7 +106,7 @@ def _authorize_form_validate(self, tx, data, ): partner_id = invoice_id.partner_id if partner_id.parent_id: partner_id = partner_id.parent_id - account_id = partner_id.property_account_receivable.id + account_id = partner_id.property_account_receivable voucher_id = self.env['account.voucher'].create({ 'name': name, 'amount': pay_amount,