def _check_paynet_account_number(self):
        for contract in self:
            if not contract.is_paynet_contract:
                continue
            if not contract.paynet_account_number:
                raise ValidationError(
                    _("The Paynet ID is required for a Paynet contract.")
                )